Skip to content

Commit

Permalink
CL-468 Split Language config
Browse files Browse the repository at this point in the history
  • Loading branch information
slaviczavik committed Nov 12, 2024
1 parent 70f7eb7 commit 8ddc488
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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;

/**
Expand Down

0 comments on commit 8ddc488

Please sign in to comment.