mirror of
https://github.com/NaitLee/Cat-Printer.git
synced 2025-05-16 23:30:15 -07:00
Add files via upload
This commit is contained in:
parent
608ba15744
commit
30ba739374
@ -17,6 +17,7 @@ var I18nExtensions = (function() {
|
|||||||
'en-US': English,
|
'en-US': English,
|
||||||
'zh-CN': Chinese,
|
'zh-CN': Chinese,
|
||||||
'de-DE': German,
|
'de-DE': German,
|
||||||
|
'nl-NL': Dutch,
|
||||||
'ar': Arabic
|
'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'>}
|
* @type {ExtensionOf<'ar'>}
|
||||||
*/
|
*/
|
||||||
|
4
www/i18n.d.ts
vendored
4
www/i18n.d.ts
vendored
@ -29,6 +29,10 @@ type AllConditions = {
|
|||||||
'single': string,
|
'single': string,
|
||||||
'multiple': string
|
'multiple': string
|
||||||
},
|
},
|
||||||
|
'nl-NL': {
|
||||||
|
'single': string,
|
||||||
|
'multiple': string
|
||||||
|
},
|
||||||
'zh-CN': {
|
'zh-CN': {
|
||||||
'measure': string
|
'measure': string
|
||||||
}
|
}
|
||||||
|
10
www/list.json
Normal file
10
www/list.json
Normal 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": "中文(傳統字)"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user