mirror of
https://github.com/quartz-community/folder-page.git
synced 2026-07-22 02:50:24 +00:00
i18n: add translations for 30 locales from Quartz v4
This commit is contained in:
parent
dfb72dd706
commit
614978f73b
2 changed files with 29 additions and 0 deletions
20
src/i18n/locales/ru-RU.ts
Normal file
20
src/i18n/locales/ru-RU.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
export default {
|
||||
pages: {
|
||||
folderContent: {
|
||||
folder: "Папка",
|
||||
itemsUnderFolder: ({ count }: { count: number }) =>
|
||||
`в этой папке ${count} элемент${getForm(count, "", "а", "ов")}`,
|
||||
},
|
||||
},
|
||||
components: {},
|
||||
};
|
||||
|
||||
function getForm(number: number, form1: string, form2: string, form5: string): string {
|
||||
const remainder100 = number % 100;
|
||||
const remainder10 = remainder100 % 10;
|
||||
|
||||
if (remainder100 >= 10 && remainder100 <= 20) return form5;
|
||||
if (remainder10 > 1 && remainder10 < 5) return form2;
|
||||
if (remainder10 == 1) return form1;
|
||||
return form5;
|
||||
}
|
||||
9
src/i18n/locales/th-TH.ts
Normal file
9
src/i18n/locales/th-TH.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
export default {
|
||||
pages: {
|
||||
folderContent: {
|
||||
folder: "โฟลเดอร์",
|
||||
itemsUnderFolder: ({ count }: { count: number }) => `มี ${count} รายการในโฟลเดอร์นี้`,
|
||||
},
|
||||
},
|
||||
components: {},
|
||||
};
|
||||
Loading…
Reference in a new issue