lbry-desktop/ui/constants
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
..
action_types.js bring in livestream changes from odysee 2021-03-22 15:30:01 -07:00
claim.js update invalid symbols 2020-08-11 11:30:23 -04:00
claim_search.js cleanup from last PR 2020-11-13 15:54:00 -05:00
comment.js add comment sorting and improve comment focus styles 2020-10-06 16:04:52 -04:00
email.js simpler email regex 2019-11-18 14:50:29 -05:00
file_render_modes.js Enable PDF Viewer in App 2021-01-28 10:21:35 -05:00
form-field.js Markdown editor: Remove character limit 2021-03-21 21:00:16 -04:00
icons.js add livestream icons 2021-03-24 12:13:26 -04:00
languages.js zh languages 2021-01-11 10:30:26 -05:00
licenses.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
livestream.js use new livestream iframe embed 2021-03-22 15:30:25 -07:00
modal_types.js New moderation tools: block & mute (#5572) 2021-03-03 13:50:16 -05:00
moonpay.js moonpay 2020-06-03 14:16:43 -04:00
notifications.js per channel notification settings 2020-11-02 14:13:13 -05:00
pages.js Create livestream page and generate signed streamkey 2021-03-22 15:29:59 -07:00
publish_types.js add new 'livestream' publish mode 2021-03-22 15:30:03 -07:00
reactions.js creator only like reactions 2020-10-27 12:27:30 -04:00
search.js add search code from lbry-redux 2020-07-27 16:37:36 -04:00
searchable_languages.js claim-search by language 2020-10-29 15:20:18 -04:00
settings.js Make zoom level persistent on Desktop 2021-01-26 10:20:59 -05:00
subscriptions.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
supported_languages.js Simplify language lists 2021-04-04 22:54:33 -04:00
tags.js review changes 2021-02-04 20:55:36 -05:00
themes.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
thumbnail_upload_statuses.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
token.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
transaction_types.js fix: double confirmation on channel updates 2020-04-06 14:11:24 -04:00