mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-25 02:36:21 +03:00
fix: TS error in locales list
This commit is contained in:
parent
7aa3a571bc
commit
c8baff3186
1 changed files with 2 additions and 3 deletions
|
@ -2,8 +2,7 @@ import type { NuxtI18nOptions } from '@nuxtjs/i18n'
|
|||
import type { DateTimeFormats } from '@intlify/core-base'
|
||||
import type { LocaleObject } from '#i18n'
|
||||
|
||||
// @ts-expect-error dir is there, ts complaining
|
||||
const locales: LocaleObject[] = [
|
||||
const locales = ([
|
||||
{
|
||||
code: 'en-US',
|
||||
file: 'en-US.json',
|
||||
|
@ -50,7 +49,7 @@ const locales: LocaleObject[] = [
|
|||
name: 'العربية',
|
||||
dir: 'rtl',
|
||||
},
|
||||
].sort((a, b) => a.code.localeCompare(b.code))
|
||||
] satisfies LocaleObject[]).sort((a, b) => a.code.localeCompare(b.code))
|
||||
|
||||
const datetimeFormats = Object.keys(locales).reduce((acc, key) => {
|
||||
acc[key] = {
|
||||
|
|
Loading…
Reference in a new issue