Skip to content
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

Consistently use browser.i18n language #489

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Cimbali
Copy link

@Cimbali Cimbali commented Mar 2, 2020

Use the same language for date formatting and document lang attribute than the one used for the rest of i18n by browser.i18n.getMessage(), by getting browser.i18n.getUILanguage() instead of navigator.language (which is a different setting).

Also fixes the problems when navigator.language is not specified, see #487 and #274.

@Cimbali
Copy link
Author

Cimbali commented May 26, 2020

Updated to avoid conflict with 2a0b9e1

@tanriol
Copy link
Member

tanriol commented May 27, 2020

Thank you for updating. Sorry, I'm dealing with some deadlines now, so won't be able to work on Brief for the next couple weeks.

@Cimbali
Copy link
Author

Cimbali commented May 28, 2020

No worries ! I’m running the alpha now and it’s going smoothly. 👍

Make the language used for date formatting and document lang attribute
consistent with the language used for strings by using browser.i18n for
both mechanisms (instead of something relying on navigator.language
which is a different setting).

Also fixes the problems when navigator.language is not specified, see brief-rss#487 and brief-rss#274.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants