Add files via upload

This commit is contained in:
huaak 2023-04-16 18:28:11 +02:00 committed by GitHub
parent 608ba15744
commit 30ba739374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 1 deletions

View File

@ -17,6 +17,7 @@ var I18nExtensions = (function() {
'en-US': English,
'zh-CN': Chinese,
'de-DE': German,
'nl-NL': Dutch,
'ar': Arabic
};
@ -113,7 +114,20 @@ var I18nExtensions = (function() {
}
}
}
/**
* @type {ExtensionOf<'nl-NL'>}
*/
function Dutch(things, conditions) {
if (typeof conditions === 'string')
return conditions;
for (let index in things) {
let value = things[index];
if (typeof value === 'number') {
if (value == 1) return conditions['single'];
else return conditions['multiple'];
}
}
}
/**
* @type {ExtensionOf<'ar'>}
*/

4
www/i18n.d.ts vendored
View File

@ -29,6 +29,10 @@ type AllConditions = {
'single': string,
'multiple': string
},
'nl-NL': {
'single': string,
'multiple': string
},
'zh-CN': {
'measure': string
}

10
www/list.json Normal file
View File

@ -0,0 +1,10 @@
{
"en-US": "English (US)",
"de-DE": "Deutsch",
"nl-NL": "Nederlands",
"zh-CN": "中文(简体字)",
"zh-TW": "中文(正體字)",
"zh-HK": "中文(香港字)",
"lolcat": "LOLCAT",
"zh-Hant-CN": "中文(傳統字)"
}