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

Commit

Permalink
Merge pull request #6 from LordBex/master
Browse files Browse the repository at this point in the history
adding Chinese China (zh-CN ) as locale
  • Loading branch information
bytedream committed Oct 3, 2022
2 parents 85bad2b + db03181 commit 57e0ff9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions crunchyroll.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const (
RU = "ru-RU"
AR = "ar-SA"
ME = "ar-ME"
CN = "zh-CN"
)

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

// ValidateLocale validates if the given locale actually exist.
Expand Down Expand Up @@ -56,6 +57,8 @@ func LocaleLanguage(locale crunchyroll.LOCALE) string {
return "Russian"
case crunchyroll.AR, crunchyroll.ME:
return "Arabic"
case crunchyroll.CN:
return "Chinese (China)"
default:
return ""
}
Expand Down

0 comments on commit 57e0ff9

Please sign in to comment.