lbry-desktop/ui
infinite-persistence 81e4730037 Simplify language lists
- SUPPORTED_SUB_LANGUAGE_CODES[] that I introduced was pretty redundant when SUPPORTED_LANGUAGES[] already hold the information. The logic to ignore sub-languages (i.e. reduce the locale's "en-GB" to "en" is now located in getDefaultLanguage()).

- SUPPORTED_BROWSER_LANGUAGES[] and SUPPORTED_LANGUAGES[] look so similar and hard to tell what the former is for at first glance. The functionality to map 'zh-CN' to 'zh-Hans' is now handled by resolveLanguageAlias(), which makes the intention clearer.

This leaves us with a single list -- SUPPORTED_LANGUAGES[], whose key also tells us the desired language code to use.
Also, clients now need to call `resolveLanguageAlias` to map any language code aliases, as they differ depending on how it is queried (e.g. `navigator.language` vs. `app.getLocal()` uses different standards).

I think we no longer need to explicitly migrate existing user's 'zh-CN' into 'zh-Hans' because the rest of the system will always use the desired language code as long as 'resolveLanguageAlias' is called appropriately. e.g. the system uses `selectLanguage` and `selectLanguage` calls `resolveLanguageAlias`.
2021-04-04 22:54:33 -04:00
..
component Simplify language lists 2021-04-04 22:54:33 -04:00
constants Simplify language lists 2021-04-04 22:54:33 -04:00
effects fix bad lighthouse results 2021-01-28 15:35:15 -05:00
modal fix livestream redirect to dashboard 2021-03-26 18:43:09 -04:00
page claim email_verified reward on channel/new page 2021-04-04 22:16:45 -04:00
redux Simplify language lists 2021-04-04 22:54:33 -04:00
scss Fixes #5822 display of upload date and view count on smaller screens 2021-04-04 22:51:07 -04:00
util Simplify language lists 2021-04-04 22:54:33 -04:00
analytics.js add videoFetchDuration to typedef 2021-03-09 16:04:40 -05:00
app.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
comments.js New moderation tools: block & mute (#5572) 2021-03-03 13:50:16 -05:00
i18n.js Simplify language lists 2021-04-04 22:54:33 -04:00
index.jsx When a new reward is acquired, only close modals if the reward comes from reward_code 2021-01-08 08:16:41 -07:00
logWarningConsoleMessage.js new lbc icon 2020-09-29 17:12:32 -04:00
native.js working 2020-12-16 10:52:22 -05:00
reducers.js sync reducer stuff 2020-10-27 10:17:11 -04:00
rewards.js When a new reward is acquired, only close modals if the reward comes from reward_code 2021-01-08 08:16:41 -07:00
store.js New moderation tools: block & mute (#5572) 2021-03-03 13:50:16 -05:00