Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

User language preference and user language menu #581

Merged
merged 14 commits into from
Jul 2, 2021

Conversation

ovillegaszen
Copy link
Contributor

Short description

Description

Everything related to User Language Preference.

Menu Selection
Feed the language list to the language menu list
Write User Language Preference to the user preference table
Read the User Language preference on opening

References

[Github Issue] #493

Risks (if any)

  • [medium] - Stuffing up the tables or language menu selection option

@ovillegaszen ovillegaszen requested a review from a team April 7, 2021 05:04
@ovillegaszen ovillegaszen changed the title Ovillegas/save language User language preference and user language menu Apr 7, 2021
@ovillegaszen ovillegaszen force-pushed the ovillegas/save-language branch from 83d61a4 to f0b1eab Compare April 7, 2021 05:11
Copy link
Contributor

@samzx samzx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo: tests

app/javascript/components/UserProfileMenu/index.jsx Outdated Show resolved Hide resolved
@ovillegaszen
Copy link
Contributor Author

todo: investigate why minitest is failing despite no failing tests

app/javascript/components/UserProfileMenu/index.jsx Outdated Show resolved Hide resolved
app/javascript/components/UserProfileMenu/index.jsx Outdated Show resolved Hide resolved
app/javascript/pages/App/index.js Outdated Show resolved Hide resolved
app/javascript/components/UserProfileMenu/index.jsx Outdated Show resolved Hide resolved
@samzx samzx requested review from kerrisim and ThuTrinh June 4, 2021 01:02
@@ -12,12 +12,23 @@ import { togglePopover } from 'actions'

import AppQuery from './query.gql'

// TODO refactor it into AppPage as a functional component
const MomentLocale = ({ children }) => {
// TODO refactor it into AppPage as a functional component // todo: change name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the name change todo completed?

const chosenLanguage = R.find(R.propEq('id', languageId))(languages)
const languageCode = R.prop('languageCode', chosenLanguage)
i18n.changeLanguage(languageCode, () => {
// TODO: Handle callback (error/success)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this going to be done in a separate issue?

@samzx samzx merged commit 71ffea2 into master Jul 2, 2021
@samzx samzx deleted the ovillegas/save-language branch July 2, 2021 01:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants