mirror of https://github.com/node-red/node-red.git
Remove old format lang packs
parent
64727fca87
commit
f768a02b56
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -4,8 +4,6 @@
|
|||
// - 'en' is built-in (not a lang pack) so will not actually be loaded.
|
||||
// - 'es-es' is a listed language in the NR Language dropdown, however in the case where a user has set their
|
||||
// locale to 'es-mx' (or other spanish variant) we will default to 'es' in the getCultureDist helper function.
|
||||
// - 'zh-hans' & 'zh-hant' are not listed in the NR Language dropdown, but they are valid BCP 47 Chinese lanuages that
|
||||
// monaco supports. If the users navigator.language is set to one of these, we allow it since it is a monaco supported language.
|
||||
// - 'it', 'pl' and 'tr' are not listed in the NR Language dropdown, however they are supported by monaco, so we allow
|
||||
// that lang pack to be loaded when the user has set their browser locale to one of those languages.
|
||||
const langPacks = {
|
||||
|
|
@ -23,8 +21,6 @@
|
|||
'ru': 'ru.js',
|
||||
'tr': 'tr.js',
|
||||
'zh-cn': 'zh-cn.js',
|
||||
'zh-hans': 'zh-hans.js', // See notes above
|
||||
'zh-hant': 'zh-hant.js', // See notes above
|
||||
'zh-tw': 'zh-tw.js',
|
||||
}
|
||||
// Determine the UI language - first try full BCP 47 user setting, then its base language, then browser prefered language(s).
|
||||
|
|
|
|||
Loading…
Reference in New Issue