Skip to content

Commit

Permalink
Include he-x-NoNikud as part of AllLocales hebcal/hebcal#275
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Aug 12, 2024
1 parent c2ec8d0 commit a7cae42
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions locales/locales.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import "strings"
// AllLocales is an array of all supported locale names.
var AllLocales = []string{
"en",
"he-x-NoNikud",
"ashkenazi",
"he",
"ashkenazi_litvish",
Expand All @@ -29,16 +30,16 @@ func LookupTranslation(key string, locale string) (string, bool) {
switch lang {
case "", "en", "sephardic":
return key, true
case "ashkenazi":
return Lookup_ashkenazi(key)
case "he":
return Lookup_he(key)
case "he-x-nonikud":
v, ok := Lookup_he(key)
if ok {
return HebrewStripNikkud(v), true
}
return v, ok
case "ashkenazi":
return Lookup_ashkenazi(key)
case "he":
return Lookup_he(key)
case "ashkenazi_litvish":
return Lookup_ashkenazi_litvish(key)
case "ashkenazi_poylish":
Expand Down

0 comments on commit a7cae42

Please sign in to comment.