Commit graph

15 commits

Author SHA1 Message Date
infinite-persistence
52f068cead Add: Japanese, Afrikaans, Filipino, Thai and Vietnamese
## Issue
Closes 5646: Add more completed language translations

## Notes
SDK uses RFC 5646 format, which led me to
https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry. Took the codes from here. They match what's already used in Transifex, so that's good.
2021-04-04 22:54:33 -04:00
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
infiinte-persistence
a127fce561 Add Finnish and Norwegian
## Issue
5458: add Finnish/Norwegian languages to supported
2021-02-17 17:39:54 -05:00
zeppi
6fb345dbbc zh languages
bugfix

bugfix3

publish

add zh back for homepage selector

test

revert i18n file

DRY publish language
2021-01-11 10:30:26 -05:00
infiinte-persistence
ad0d96328b Add ability to support language subsets, with only CT and CS enabled for now.
CT - Chinese Traditional
CS - Chinese Simplified

Note that if English subsets like en-GB is enabled in the future, the default 'en' value used throughout the code (including in redux.git) needs to be changed to 'en-US'.
2020-07-08 14:25:14 -04:00
Joaquim
4aba0716dd Add Catalan language 2020-06-04 10:13:25 -04:00
YULIUS KURNIAWAN KRISTIANTO
d097a0b1ee Added Ukrainian to supported language
Based on Translators LBRY Discord channel and LBRY zone on Transifex
2020-03-05 11:31:49 -05:00
YULIUS KURNIAWAN KRISTIANTO
31643005f1 added more languages
based on my observation on transifex
2020-02-27 15:50:52 -05:00
YULIUS KURNIAWAN KRISTIANTO
745e98221f added javanese 2020-02-14 17:29:20 -05:00
kodxana
ba0ad6fe07 Added Danish, Romanian, and Urdu 2020-02-10 08:53:17 -05:00
Julie Sigwart
5c4e841ac3 Added Marathi (mr), Panjabi (pa), and Swedish (sv) 2019-12-17 01:28:14 -05:00
Thomas Zarebczan
d8b580b9f5 Add back en 2019-12-06 08:20:59 -05:00
kodxana
f6e21b0d93 Sort alphabetical + new languages 2019-12-06 00:19:52 -05:00
kodxana
d8a267cf67 Added Malayalam (ml) and Serbian (sr) language 2019-11-19 16:31:36 -05:00
Jeremy Kauffman
751b86d05d finished?! 2019-11-13 09:53:01 -05:00
Renamed from src/ui/constants/supported_languages.js (Browse further)