Skip to content

Consistently use browser.i18n language#489

Open
Cimbali wants to merge 1 commit intobrief-rss:masterfrom
Cimbali:master
Open

Consistently use browser.i18n language#489
Cimbali wants to merge 1 commit intobrief-rss:masterfrom
Cimbali:master

Conversation

@Cimbali
Copy link
Copy Markdown

@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
Copy Markdown
Author

Cimbali commented May 26, 2020

Updated to avoid conflict with 2a0b9e1

@tanriol
Copy link
Copy Markdown
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
Copy Markdown
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