Load language from OS #3180

Merged
kauffj merged 9 commits from peterjgrainger-master into master 2019-11-13 15:53:02 +01:00
kauffj commented 2019-11-05 19:57:24 +01:00 (Migrated from github.com)

This improves #3018 to allow ui.js to load immediately without waiting for language files to load.

This improves #3018 to allow `ui.js` to load immediately without waiting for language files to load.
neb-b (Migrated from github.com) reviewed 2019-11-05 19:57:24 +01:00
kauffj (Migrated from github.com) reviewed 2019-11-05 19:58:57 +01:00
kauffj (Migrated from github.com) commented 2019-11-05 19:58:57 +01:00

@seanyesmunt is there a technique we can use to force/always trigger a complete re-render when window.i18n_messages[language] was not already set?

The only known time we are failing to re-render is when manually refreshing in app-mode.

@seanyesmunt is there a technique we can use to force/always trigger a complete re-render when `window.i18n_messages[language]` was not already set? The only known time we are failing to re-render is when manually refreshing in app-mode.
neb-b (Migrated from github.com) reviewed 2019-11-05 20:47:59 +01:00
neb-b (Migrated from github.com) commented 2019-11-05 20:47:58 +01:00

You can set a value in redux here, then pass that value in as a prop to the top level <App/> component

You can set a value in redux here, then pass that value in as a prop to the top level `<App/>` component
neb-b (Migrated from github.com) approved these changes 2019-11-05 20:57:36 +01:00
neb-b (Migrated from github.com) left a comment

One import statement issue.

language also doesn't look like a word now

One import statement issue. `language` also doesn't look like a word now
neb-b (Migrated from github.com) commented 2019-11-05 20:50:55 +01:00

from 'constants/supported_languages'

from 'constants/supported_languages'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#3180
No description provided.