config: add Lithuanian support (#1935)

This commit is contained in:
Thomas Camlong
2024-03-09 16:49:30 +01:00
committed by GitHub
parent 93379145ac
commit 18bd9c856d
2 changed files with 10 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ module.exports = {
'tw', 'tw',
'uk', 'uk',
'vi', 'vi',
'lt',
], ],
localeDetection: false, localeDetection: false,

View File

@@ -238,6 +238,15 @@ export const languages = [
locale: 'vi', locale: 'vi',
dayJsLocale: 'vi' dayJsLocale: 'vi'
}, },
// Lithuanian
{
shortName: 'lt',
originalName: 'Lietuvių',
translatedName: 'Lithuanian',
country: 'LT',
locale: 'lt',
dayJsLocale: 'lt'
}
] as const satisfies Readonly<Language[]>; ] as const satisfies Readonly<Language[]>;
export const getLanguageByCode = (code: string | null): Language => export const getLanguageByCode = (code: string | null): Language =>