Changed spanish latin america and arabic locale & added portuguese

This commit is contained in:
bytedream 2022-02-24 21:22:58 +01:00
parent bd19b34088
commit 777738a1a1
2 changed files with 8 additions and 4 deletions

View file

@ -18,14 +18,15 @@ type LOCALE string
const ( const (
JP LOCALE = "ja-JP" JP LOCALE = "ja-JP"
US = "en-US" US = "en-US"
LA = "es-LA" LA = "es-419"
ES = "es-ES" ES = "es-ES"
FR = "fr-FR" FR = "fr-FR"
PT = "pt-PT"
BR = "pt-BR" BR = "pt-BR"
IT = "it-IT" IT = "it-IT"
DE = "de-DE" DE = "de-DE"
RU = "ru-RU" RU = "ru-RU"
ME = "ar-ME" AR = "ar-SA"
) )
type Crunchyroll struct { type Crunchyroll struct {

View file

@ -10,11 +10,12 @@ var AllLocales = []crunchyroll.LOCALE{
crunchyroll.LA, crunchyroll.LA,
crunchyroll.ES, crunchyroll.ES,
crunchyroll.FR, crunchyroll.FR,
crunchyroll.PT,
crunchyroll.BR, crunchyroll.BR,
crunchyroll.IT, crunchyroll.IT,
crunchyroll.DE, crunchyroll.DE,
crunchyroll.RU, crunchyroll.RU,
crunchyroll.ME, crunchyroll.AR,
} }
// ValidateLocale validates if the given locale actually exist // ValidateLocale validates if the given locale actually exist
@ -40,6 +41,8 @@ func LocaleLanguage(locale crunchyroll.LOCALE) string {
return "Spanish (Spain)" return "Spanish (Spain)"
case crunchyroll.FR: case crunchyroll.FR:
return "French" return "French"
case crunchyroll.PT:
return "Portuguese (Europe)"
case crunchyroll.BR: case crunchyroll.BR:
return "Portuguese (Brazil)" return "Portuguese (Brazil)"
case crunchyroll.IT: case crunchyroll.IT:
@ -48,7 +51,7 @@ func LocaleLanguage(locale crunchyroll.LOCALE) string {
return "German" return "German"
case crunchyroll.RU: case crunchyroll.RU:
return "Russian" return "Russian"
case crunchyroll.ME: case crunchyroll.AR:
return "Arabic" return "Arabic"
default: default:
return "" return ""