11c7355749
This seems more intuitive to me and is what I've seen in most other language pickers.
13 lines
234 B
JavaScript
13 lines
234 B
JavaScript
const specialLanguageCodes = {
|
|
'ja_easy': 'ja',
|
|
'zh_Hant': 'zh-HANT'
|
|
}
|
|
|
|
const internalToBrowserLocale = code => specialLanguageCodes[code] || code
|
|
|
|
const localeService = {
|
|
internalToBrowserLocale
|
|
}
|
|
|
|
export default localeService
|