Skip to content

Commit

Permalink
feat(i18n): Add translator support language
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkinStars committed Dec 19, 2022
1 parent b8be003 commit f734f4a
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions i18n/translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@ package i18n
import "strings"

const (
LanguageChinese Language = "zh_CN"
LanguageEnglish Language = "en_US"
LangEng = LanguageEnglish
LangChn = LanguageChinese
LanguageChinese Language = "zh_CN"
LanguageChineseTraditional Language = "zh_TW"
LanguageEnglish Language = "en_US"
LanguageGerman Language = "de_DE"
LanguageSpanish Language = "es_ES"
LanguageFrench Language = "fr_FR"
LanguageItalian Language = "it_IT"
LanguageJapanese Language = "ja_JP"
LanguageKorean Language = "ko_KR"
LanguagePortuguese Language = "pt_PT"
LanguageRussian Language = "ru_RU"
LanguageVietnamese Language = "vi_VN"

DefaultLanguage = LanguageEnglish
DefaultLang = DefaultLanguage
DefLang = DefaultLanguage
)

type Language string
Expand Down

0 comments on commit f734f4a

Please sign in to comment.