-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: locale string changes types added
- Loading branch information
Pritish Budhiraja
committed
Apr 4, 2024
1 parent
c66f968
commit 96d9820
Showing
3 changed files
with
41 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
open LocaleStringTypes | ||
let mapLocalStringToTypeLocale = val => { | ||
switch val { | ||
| "en" => EN | ||
| "he" => HE | ||
| "fr" => FR | ||
| "en-GB" => EN_GB | ||
| "ar" => AR | ||
| "ja" => JA | ||
| "de" => DE | ||
| "fr-BE" => FR_BE | ||
| "es" => ES | ||
| "ca" => CA | ||
| "pt" => PT | ||
| "it" => IT | ||
| "pl" => PL | ||
| "nl" => NL | ||
| "sv" => SV | ||
| "ru" => RU | ||
| _ => EN | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters