From 8ddc488b7d42a4280a5f79f65357dc007330b092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Z=C3=A1vodn=C3=BD?= Date: Tue, 12 Nov 2024 12:18:57 +0100 Subject: [PATCH] CL-468 Split Language config --- src/language.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/language.ts b/src/language.ts index e70e6b2..fdf821a 100644 --- a/src/language.ts +++ b/src/language.ts @@ -36,9 +36,9 @@ export type LanguageInfo = { }; /** - * The complete list of languages + * List of "non-ISO specific" languages. */ -export const Language = { +export const NonISOLanguage = { /** * Language mode to display the labels in the end user's device language. */ @@ -88,7 +88,12 @@ export const Language = { isMode: false, geocoding: false, } as LanguageInfo, +} as const +/** + * List of "country specific" languages. + */ +export const ISOLanguage = { /** * Amharic language */ @@ -1012,6 +1017,14 @@ export const Language = { isMode: false, geocoding: false, } as LanguageInfo, +} as const + +/** + * The complete list of languages + */ +export const Language = { + ...NonISOLanguage, + ...ISOLanguage } as const; /**