New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default language on user-account-edit differs from application default #2362
Labels
Comments
It looks like this is once-again due to the fast-get-text vs i18n discrepancy in naming schemes Given we have a |
sam to look at still |
Good for me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a new user to the tool first updates their profile, the language box will default to the first returned from the database.
Our logic for this page's default language is:
current_user.language.nil? ? Language.id_for(FastGettext.default_locale) : current_user.language.id
The
id_for
function is defined as:Language.where(abbreviation: abbreviation).pluck(:id).first
The text was updated successfully, but these errors were encountered: