Files
bewell-in-ua/i18n-config.ts
2025-02-05 08:01:14 +02:00

15 lines
500 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export const i18nLocalesCodes: [string, string] = ['uk', 'ru'] as const
export const i18nLocales = [
{code: 'uk', name: 'Українська', nameUkr: 'Українська', icon: 'УКР'},
{code: 'ru', name: 'русский', nameUkr: 'російська', icon: 'РУС'}
] as const
export const i18nDefaultLocale = 'uk'
export const i18n = {
locales: i18nLocales,
defaultLocale: i18nDefaultLocale
}
export type I18nConfig = typeof i18n
export type Locale = I18nConfig['locales'][number]