forked from Mirrors/elk
revert: "fix: TS error in locales list"
wait issue: https://github.com/unjs/jiti/issues/106
This reverts commit c8baff3186
.
This commit is contained in:
parent
0420e3b288
commit
8b06c48514
1 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,8 @@ import type { NuxtI18nOptions } from '@nuxtjs/i18n'
|
||||||
import type { DateTimeFormats } from '@intlify/core-base'
|
import type { DateTimeFormats } from '@intlify/core-base'
|
||||||
import type { LocaleObject } from '#i18n'
|
import type { LocaleObject } from '#i18n'
|
||||||
|
|
||||||
const locales = ([
|
// @ts-expect-error dir is there, ts complaining
|
||||||
|
const locales: LocaleObject[] = [
|
||||||
{
|
{
|
||||||
code: 'en-US',
|
code: 'en-US',
|
||||||
file: 'en-US.json',
|
file: 'en-US.json',
|
||||||
|
@ -49,7 +50,7 @@ const locales = ([
|
||||||
name: 'العربية',
|
name: 'العربية',
|
||||||
dir: 'rtl',
|
dir: 'rtl',
|
||||||
},
|
},
|
||||||
] satisfies LocaleObject[]).sort((a, b) => a.code.localeCompare(b.code))
|
].sort((a, b) => a.code.localeCompare(b.code))
|
||||||
|
|
||||||
const datetimeFormats = Object.keys(locales).reduce((acc, key) => {
|
const datetimeFormats = Object.keys(locales).reduce((acc, key) => {
|
||||||
acc[key] = {
|
acc[key] = {
|
||||||
|
|
Loading…
Reference in a new issue