forked from Mirrors/elk
fix: TS error in locales list
upgrade jiti https://github.com/unjs/jiti/issues/106 is fixed
This commit is contained in:
parent
907abd0b41
commit
5e38a768c9
2 changed files with 16 additions and 16 deletions
|
@ -9,7 +9,6 @@ interface LocaleObjectData extends LocaleObject {
|
||||||
pluralRule?: PluralizationRule
|
pluralRule?: PluralizationRule
|
||||||
}
|
}
|
||||||
|
|
||||||
// @ts-expect-error dir is there, ts complaining
|
|
||||||
const locales: LocaleObjectData[] = [
|
const locales: LocaleObjectData[] = [
|
||||||
{
|
{
|
||||||
code: 'en-US',
|
code: 'en-US',
|
||||||
|
@ -61,7 +60,7 @@ const locales: LocaleObjectData[] = [
|
||||||
file: 'cs-CZ.json',
|
file: 'cs-CZ.json',
|
||||||
name: 'Česky',
|
name: 'Česky',
|
||||||
},
|
},
|
||||||
{
|
({
|
||||||
code: 'ar-EG',
|
code: 'ar-EG',
|
||||||
file: 'ar-EG.json',
|
file: 'ar-EG.json',
|
||||||
name: 'العربية',
|
name: 'العربية',
|
||||||
|
@ -70,7 +69,7 @@ const locales: LocaleObjectData[] = [
|
||||||
const name = new Intl.PluralRules('ar-EG').select(choice)
|
const name = new Intl.PluralRules('ar-EG').select(choice)
|
||||||
return { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }[name]
|
return { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }[name]
|
||||||
},
|
},
|
||||||
},
|
} satisfies LocaleObjectData),
|
||||||
].sort((a, b) => a.code.localeCompare(b.code))
|
].sort((a, b) => a.code.localeCompare(b.code))
|
||||||
|
|
||||||
const datetimeFormats = Object.values(locales).reduce((acc, data) => {
|
const datetimeFormats = Object.values(locales).reduce((acc, data) => {
|
||||||
|
|
|
@ -169,7 +169,7 @@ devDependencies:
|
||||||
typescript: 4.9.4
|
typescript: 4.9.4
|
||||||
unplugin-auto-import: 0.12.1_@vueuse+core@9.9.0
|
unplugin-auto-import: 0.12.1_@vueuse+core@9.9.0
|
||||||
vite-plugin-inspect: 0.7.11
|
vite-plugin-inspect: 0.7.11
|
||||||
vite-plugin-pwa: 0.14.1
|
vite-plugin-pwa: 0.14.1_workbox-window@6.5.4
|
||||||
vitest: 0.26.2_jsdom@20.0.3
|
vitest: 0.26.2_jsdom@20.0.3
|
||||||
vue-tsc: 1.0.16_typescript@4.9.4
|
vue-tsc: 1.0.16_typescript@4.9.4
|
||||||
workbox-window: 6.5.4
|
workbox-window: 6.5.4
|
||||||
|
@ -1906,7 +1906,7 @@ packages:
|
||||||
globby: 13.1.2
|
globby: 13.1.2
|
||||||
hash-sum: 2.0.0
|
hash-sum: 2.0.0
|
||||||
ignore: 5.2.1
|
ignore: 5.2.1
|
||||||
jiti: 1.16.0
|
jiti: 1.16.1
|
||||||
knitwork: 1.0.0
|
knitwork: 1.0.0
|
||||||
lodash.template: 4.5.0
|
lodash.template: 4.5.0
|
||||||
mlly: 1.0.0
|
mlly: 1.0.0
|
||||||
|
@ -1932,7 +1932,7 @@ packages:
|
||||||
globby: 13.1.2
|
globby: 13.1.2
|
||||||
hash-sum: 2.0.0
|
hash-sum: 2.0.0
|
||||||
ignore: 5.2.1
|
ignore: 5.2.1
|
||||||
jiti: 1.16.0
|
jiti: 1.16.1
|
||||||
knitwork: 1.0.0
|
knitwork: 1.0.0
|
||||||
lodash.template: 4.5.0
|
lodash.template: 4.5.0
|
||||||
mlly: 1.0.0
|
mlly: 1.0.0
|
||||||
|
@ -1955,7 +1955,7 @@ packages:
|
||||||
c12: 1.0.1
|
c12: 1.0.1
|
||||||
create-require: 1.1.1
|
create-require: 1.1.1
|
||||||
defu: 6.1.1
|
defu: 6.1.1
|
||||||
jiti: 1.16.0
|
jiti: 1.16.1
|
||||||
pathe: 1.0.0
|
pathe: 1.0.0
|
||||||
pkg-types: 1.0.1
|
pkg-types: 1.0.1
|
||||||
postcss-import-resolver: 2.0.0
|
postcss-import-resolver: 2.0.0
|
||||||
|
@ -1975,7 +1975,7 @@ packages:
|
||||||
c12: 1.0.1
|
c12: 1.0.1
|
||||||
create-require: 1.1.1
|
create-require: 1.1.1
|
||||||
defu: 6.1.1
|
defu: 6.1.1
|
||||||
jiti: 1.16.0
|
jiti: 1.16.1
|
||||||
pathe: 1.0.0
|
pathe: 1.0.0
|
||||||
pkg-types: 1.0.1
|
pkg-types: 1.0.1
|
||||||
postcss-import-resolver: 2.0.0
|
postcss-import-resolver: 2.0.0
|
||||||
|
@ -2005,7 +2005,7 @@ packages:
|
||||||
git-url-parse: 13.1.0
|
git-url-parse: 13.1.0
|
||||||
inquirer: 9.1.4
|
inquirer: 9.1.4
|
||||||
is-docker: 3.0.0
|
is-docker: 3.0.0
|
||||||
jiti: 1.16.0
|
jiti: 1.16.1
|
||||||
mri: 1.2.0
|
mri: 1.2.0
|
||||||
nanoid: 4.0.0
|
nanoid: 4.0.0
|
||||||
node-fetch: 3.3.0
|
node-fetch: 3.3.0
|
||||||
|
@ -2107,7 +2107,7 @@ packages:
|
||||||
pathe: 1.0.0
|
pathe: 1.0.0
|
||||||
pkg-types: 1.0.1
|
pkg-types: 1.0.1
|
||||||
ufo: 1.0.1
|
ufo: 1.0.1
|
||||||
unplugin: 1.0.0
|
unplugin: 1.0.1
|
||||||
vue-i18n: 9.3.0-beta.10
|
vue-i18n: 9.3.0-beta.10
|
||||||
vue-i18n-routing: 0.10.1_vue-i18n@9.3.0-beta.10
|
vue-i18n-routing: 0.10.1_vue-i18n@9.3.0-beta.10
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
@ -4198,7 +4198,7 @@ packages:
|
||||||
defu: 6.1.1
|
defu: 6.1.1
|
||||||
dotenv: 16.0.3
|
dotenv: 16.0.3
|
||||||
gittar: 0.1.1
|
gittar: 0.1.1
|
||||||
jiti: 1.16.0
|
jiti: 1.16.1
|
||||||
mlly: 1.0.0
|
mlly: 1.0.0
|
||||||
pathe: 1.0.0
|
pathe: 1.0.0
|
||||||
pkg-types: 1.0.1
|
pkg-types: 1.0.1
|
||||||
|
@ -6727,8 +6727,8 @@ packages:
|
||||||
supports-color: 7.2.0
|
supports-color: 7.2.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/jiti/1.16.0:
|
/jiti/1.16.1:
|
||||||
resolution: {integrity: sha512-L3BJStEf5NAqNuzrpfbN71dp43mYIcBUlCRea/vdyv5dW/AYa1d4bpelko4SHdY3I6eN9Wzyasxirj1/vv5kmg==}
|
resolution: {integrity: sha512-kJUp4Bj44uTaZAwG6R2/GjbodOWHULn8Swue0B7tY8v5BpTkUvDR+zBM5tsbC4x/jCeYDZ+mAdrUIScwIo4oPw==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
/js-cookie/3.0.1:
|
/js-cookie/3.0.1:
|
||||||
|
@ -7414,7 +7414,7 @@ packages:
|
||||||
hookable: 5.4.2
|
hookable: 5.4.2
|
||||||
http-proxy: 1.18.1
|
http-proxy: 1.18.1
|
||||||
is-primitive: 3.0.1
|
is-primitive: 3.0.1
|
||||||
jiti: 1.16.0
|
jiti: 1.16.1
|
||||||
klona: 2.0.5
|
klona: 2.0.5
|
||||||
knitwork: 1.0.0
|
knitwork: 1.0.0
|
||||||
listhen: 1.0.1
|
listhen: 1.0.1
|
||||||
|
@ -9551,7 +9551,7 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@antfu/utils': 0.5.2
|
'@antfu/utils': 0.5.2
|
||||||
defu: 6.1.1
|
defu: 6.1.1
|
||||||
jiti: 1.16.0
|
jiti: 1.16.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/unctx/2.1.1:
|
/unctx/2.1.1:
|
||||||
|
@ -10020,10 +10020,11 @@ packages:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/vite-plugin-pwa/0.14.1:
|
/vite-plugin-pwa/0.14.1_workbox-window@6.5.4:
|
||||||
resolution: {integrity: sha512-5zx7yhQ8RTLwV71+GA9YsQQ63ALKG8XXIMqRJDdZkR8ZYftFcRgnzM7wOWmQZ/DATspyhPih5wCdcZnAIsM+mA==}
|
resolution: {integrity: sha512-5zx7yhQ8RTLwV71+GA9YsQQ63ALKG8XXIMqRJDdZkR8ZYftFcRgnzM7wOWmQZ/DATspyhPih5wCdcZnAIsM+mA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
vite: ^3.1.0 || ^4.0.0
|
vite: ^3.1.0 || ^4.0.0
|
||||||
|
workbox-window: ^6.5.4
|
||||||
dependencies:
|
dependencies:
|
||||||
'@rollup/plugin-replace': 5.0.1_rollup@3.9.1
|
'@rollup/plugin-replace': 5.0.1_rollup@3.9.1
|
||||||
debug: 4.3.4
|
debug: 4.3.4
|
||||||
|
|
Loading…
Reference in a new issue