Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
Add ar-ME locale
Browse files Browse the repository at this point in the history
  • Loading branch information
bytedream committed Sep 3, 2022
1 parent 1917355 commit 85bad2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions crunchyroll.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const (
DE = "de-DE"
RU = "ru-RU"
AR = "ar-SA"
ME = "ar-ME"
)

// MediaType represents a media type.
Expand Down
3 changes: 2 additions & 1 deletion utils/locale.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ var AllLocales = []crunchyroll.LOCALE{
crunchyroll.DE,
crunchyroll.RU,
crunchyroll.AR,
crunchyroll.ME,
}

// ValidateLocale validates if the given locale actually exist.
Expand Down Expand Up @@ -53,7 +54,7 @@ func LocaleLanguage(locale crunchyroll.LOCALE) string {
return "German"
case crunchyroll.RU:
return "Russian"
case crunchyroll.AR:
case crunchyroll.AR, crunchyroll.ME:
return "Arabic"
default:
return ""
Expand Down

0 comments on commit 85bad2b

Please sign in to comment.