Skip to content

Commit a5bbd5f

Browse files
feat(i18n): add cs support (#360)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 6c62d94 commit a5bbd5f

File tree

4 files changed

+1735
-7
lines changed

4 files changed

+1735
-7
lines changed

app/pages/settings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const setLocale: typeof setNuxti18nLocale = locale => {
131131
<div class="space-y-2">
132132
<SettingsToggle
133133
:label="$t('settings.hide_platform_packages')"
134-
:description="$t('settings.hide_platform_packages')"
134+
:description="$t('settings.hide_platform_packages_description')"
135135
v-model="settings.hidePlatformPackages"
136136
/>
137137
</div>

config/i18n.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,16 @@ const locales: (LocaleObjectData | (Omit<LocaleObjectData, 'code'> & { code: str
211211
const name = new Intl.PluralRules('ru-RU').select(choice)
212212
return { zero: 2 /!* not used *!/, one: 0, two: 1 /!* not used *!/, few: 1, many: 2, other: 3 }[name]
213213
},
214+
},*/
215+
{
216+
code: 'cs-CZ',
217+
file: 'cs-CZ.json',
218+
name: 'Čeština',
219+
pluralRule: (choice: number) => {
220+
const name = new Intl.PluralRules('cs-CZ').select(choice)
221+
return { zero: 2, one: 0, two: 1, few: 1, many: 2, other: 2 }[name]
214222
},
215-
{
216-
code: 'cs-CZ',
217-
file: 'cs-CZ.json',
218-
name: 'Česky',
219-
},
223+
} /*
220224
{
221225
code: 'pl-PL',
222226
file: 'pl-PL.json',
@@ -258,7 +262,7 @@ const locales: (LocaleObjectData | (Omit<LocaleObjectData, 'code'> & { code: str
258262
code: 'ko-KR',
259263
file: 'ko-KR.json',
260264
name: '한국어',
261-
},*/
265+
},*/,
262266
{
263267
code: 'id-ID',
264268
file: 'id-ID.json',

0 commit comments

Comments
 (0)