lbry-desktop/ui/redux/selectors
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
..
app.js refactor 'active' channel usage across the app 2021-02-11 10:45:34 -05:00
blocked.js New moderation tools: block & mute (#5572) 2021-03-03 13:50:16 -05:00
comments.js use show mature selector (#5803) 2021-03-31 16:55:26 -04:00
content.js Fix broken video embed 2021-04-02 14:44:22 -04:00
file_info.js working 2020-12-16 10:52:22 -05:00
notifications.js mark notification seen on relevant interaction 2020-10-20 13:09:08 -04:00
publish.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
reactions.js add file reactions code from odysee 2020-10-02 15:28:00 -04:00
rewards.js initial page view sets referring channel 2020-10-07 11:44:12 -04:00
search.js use show mature selector (#5803) 2021-03-31 16:55:26 -04:00
settings.js Simplify language lists 2021-04-04 22:54:33 -04:00
subscriptions.js per channel notification settings 2020-11-02 14:13:13 -05:00
sync.js add fatal error handling when sync/get fails with unknown error 2020-11-13 14:48:04 -05:00
tags.js sync reducer stuff 2020-10-27 10:17:11 -04:00
user.js add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00