Merge branch 'feat/language-picker-native-names' into 'develop'

Use native language names in the language picker

See merge request pleroma/pleroma-fe!1302
This commit is contained in:
Shpuld Shpludson 2021-01-21 13:41:36 +00:00
commit 0358284ebf
3 changed files with 26 additions and 15 deletions

View file

@ -0,0 +1,12 @@
const specialLanguageCodes = {
'ja_easy': 'ja',
'zh_Hant': 'zh-HANT'
}
const internalToBrowserLocale = code => specialLanguageCodes[code] || code
const localeService = {
internalToBrowserLocale
}
export default localeService