Map zh_TW to zh-Hant in NSIS
This commit is contained in:
parent
1ec9bce79d
commit
834bc16c0d
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ for (const lang of REQUIRED_LANGUAGES) {
|
|||
// We use "-" in folder names
|
||||
const folder = lang.replace(/_/g, '-');
|
||||
const fallbacks = [folder, folder.replace(/-.*/g, ''), 'en'];
|
||||
if (lang === 'zh_TW') {
|
||||
fallbacks.unshift('zh-Hant');
|
||||
}
|
||||
let json: Buffer | undefined;
|
||||
for (const f of fallbacks) {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue