lbry-desktop/ui/util
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
..
autoLaunch.js fix autolaunch after changing linux cmd capitalization 2019-12-17 13:38:09 -05:00
comments.js fix 'best' comment sort 2020-11-02 17:15:53 -05:00
context-menu.js Clear dev-web warnings and lint 2021-02-19 14:18:44 -05:00
debounce.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
deep-equal.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
default-languages.js Simplify language lists 2021-04-04 22:54:33 -04:00
detect-typing.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
enhanced-layout.js mobile view 2019-12-20 15:03:18 -05:00
fetch.js add 10 second timeout to lbrytv status call 2020-03-16 17:59:24 -04:00
form-validation.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
format-bytes.js use new buffer analytics api 2020-08-07 22:54:29 -04:00
full-screen.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
generate-thumbnail-name.js style pass for channel edit 2020-07-01 22:04:23 -04:00
handle-fetch.js add search code from lbry-redux 2020-07-27 16:37:36 -04:00
hex.js New moderation tools: block & mute (#5572) 2021-03-03 13:50:16 -05:00
number.js show total balance on wallet page/header 2021-01-22 11:46:27 -05:00
object.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
parse-data.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
query-params.js Disable claim type search if filtering by channel 2021-02-19 13:50:13 -05:00
redux-utils.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
remark-lbry.js flow fixes 2020-12-16 10:52:22 -05:00
remark-timestamp.js Fix timestamp regex error 2021-03-09 16:05:00 -05:00
saved-passwords.js allow signin on local using non-production SameSite=Lax 2020-07-24 16:48:05 -04:00
set-operations.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
shuffle-array.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
string.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
swap-json.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
sync-settings.js all settings constants come from redux 2020-07-27 11:53:14 -04:00
throttle.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
thumbnail.js increase file thumbnail size in cdn url 2021-03-05 16:51:38 -05:00
time.js Allow video sharing with start timestamp 2020-05-08 14:00:59 -04:00
url.js fix desktop build 2021-01-25 14:24:57 -05:00
web-file-system.js Support drag-and-drop file publishing (#4170) 2020-05-25 10:27:36 -04:00
web.js encode embed url too 2021-01-25 13:58:12 -05:00
zoomWindow.js Make zoom level persistent on Desktop 2021-01-26 10:20:59 -05:00