Skip to content

Commit

Permalink
Merge pull request #11 from michimani/issue/10/fix-languages
Browse files Browse the repository at this point in the history
fix source and target lang code #10
  • Loading branch information
michimani authored Aug 7, 2021
2 parents 88c5016 + 5ab56fb commit 7303a77
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions types/lang.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,64 +41,64 @@ const (
ZH LangCode = "ZH"
)

// Language codes that can be specified as target_lang
// Language codes that can be specified as source_lang
const (
TargetLangBG TargetLangCode = TargetLangCode(BG)
TargetLangCS TargetLangCode = TargetLangCode(CS)
TargetLangDA TargetLangCode = TargetLangCode(DA)
TargetLangDE TargetLangCode = TargetLangCode(DE)
TargetLangEL TargetLangCode = TargetLangCode(EL)
TargetLangEN TargetLangCode = TargetLangCode(EN)
TargetLangES TargetLangCode = TargetLangCode(ES)
TargetLangET TargetLangCode = TargetLangCode(ET)
TargetLangFI TargetLangCode = TargetLangCode(FI)
TargetLangFR TargetLangCode = TargetLangCode(FR)
TargetLangHU TargetLangCode = TargetLangCode(HU)
TargetLangIT TargetLangCode = TargetLangCode(IT)
TargetLangJA TargetLangCode = TargetLangCode(JA)
TargetLangLT TargetLangCode = TargetLangCode(LT)
TargetLangLV TargetLangCode = TargetLangCode(LV)
TargetLangNL TargetLangCode = TargetLangCode(NL)
TargetLangPL TargetLangCode = TargetLangCode(PL)
TargetLangPT TargetLangCode = TargetLangCode(PT)
TargetLangRO TargetLangCode = TargetLangCode(RO)
TargetLangRU TargetLangCode = TargetLangCode(RU)
TargetLangSK TargetLangCode = TargetLangCode(SK)
TargetLangSL TargetLangCode = TargetLangCode(SL)
TargetLangSV TargetLangCode = TargetLangCode(SV)
TargetLangZH TargetLangCode = TargetLangCode(ZH)
SourceLangBG SourceLangCode = SourceLangCode(BG)
SourceLangCS SourceLangCode = SourceLangCode(CS)
SourceLangDA SourceLangCode = SourceLangCode(DA)
SourceLangDE SourceLangCode = SourceLangCode(DE)
SourceLangEL SourceLangCode = SourceLangCode(EL)
SourceLangEN SourceLangCode = SourceLangCode(EN)
SourceLangES SourceLangCode = SourceLangCode(ES)
SourceLangET SourceLangCode = SourceLangCode(ET)
SourceLangFI SourceLangCode = SourceLangCode(FI)
SourceLangFR SourceLangCode = SourceLangCode(FR)
SourceLangHU SourceLangCode = SourceLangCode(HU)
SourceLangIT SourceLangCode = SourceLangCode(IT)
SourceLangJA SourceLangCode = SourceLangCode(JA)
SourceLangLT SourceLangCode = SourceLangCode(LT)
SourceLangLV SourceLangCode = SourceLangCode(LV)
SourceLangNL SourceLangCode = SourceLangCode(NL)
SourceLangPL SourceLangCode = SourceLangCode(PL)
SourceLangPT SourceLangCode = SourceLangCode(PT)
SourceLangRO SourceLangCode = SourceLangCode(RO)
SourceLangRU SourceLangCode = SourceLangCode(RU)
SourceLangSK SourceLangCode = SourceLangCode(SK)
SourceLangSL SourceLangCode = SourceLangCode(SL)
SourceLangSV SourceLangCode = SourceLangCode(SV)
SourceLangZH SourceLangCode = SourceLangCode(ZH)
)

// Language codes that can be specified as source_lang
// Language codes that can be specified as target_lang
const (
SourceLangBG SourceLangCode = SourceLangCode(BG)
SourceLangCS SourceLangCode = SourceLangCode(CS)
SourceLangDA SourceLangCode = SourceLangCode(DA)
SourceLangDE SourceLangCode = SourceLangCode(DE)
SourceLangEL SourceLangCode = SourceLangCode(EL)
SourceLangENGB SourceLangCode = SourceLangCode(ENGB)
SourceLangENUS SourceLangCode = SourceLangCode(ENUS)
SourceLangEN SourceLangCode = SourceLangCode(EN)
SourceLangES SourceLangCode = SourceLangCode(ES)
SourceLangET SourceLangCode = SourceLangCode(ET)
SourceLangFI SourceLangCode = SourceLangCode(FI)
SourceLangFR SourceLangCode = SourceLangCode(FR)
SourceLangHU SourceLangCode = SourceLangCode(HU)
SourceLangIT SourceLangCode = SourceLangCode(IT)
SourceLangJA SourceLangCode = SourceLangCode(JA)
SourceLangLT SourceLangCode = SourceLangCode(LT)
SourceLangLV SourceLangCode = SourceLangCode(LV)
SourceLangNL SourceLangCode = SourceLangCode(NL)
SourceLangPL SourceLangCode = SourceLangCode(PL)
SourceLangPTPT SourceLangCode = SourceLangCode(PTPT)
SourceLangPTBR SourceLangCode = SourceLangCode(PTBR)
SourceLangPT SourceLangCode = SourceLangCode(PT)
SourceLangRO SourceLangCode = SourceLangCode(RO)
SourceLangRU SourceLangCode = SourceLangCode(RU)
SourceLangSK SourceLangCode = SourceLangCode(SK)
SourceLangSL SourceLangCode = SourceLangCode(SL)
SourceLangSV SourceLangCode = SourceLangCode(SV)
SourceLangZH SourceLangCode = SourceLangCode(ZH)
TargetLangBG TargetLangCode = TargetLangCode(BG)
TargetLangCS TargetLangCode = TargetLangCode(CS)
TargetLangDA TargetLangCode = TargetLangCode(DA)
TargetLangDE TargetLangCode = TargetLangCode(DE)
TargetLangEL TargetLangCode = TargetLangCode(EL)
TargetLangENGB TargetLangCode = TargetLangCode(ENGB)
TargetLangENUS TargetLangCode = TargetLangCode(ENUS)
TargetLangEN TargetLangCode = TargetLangCode(EN)
TargetLangES TargetLangCode = TargetLangCode(ES)
TargetLangET TargetLangCode = TargetLangCode(ET)
TargetLangFI TargetLangCode = TargetLangCode(FI)
TargetLangFR TargetLangCode = TargetLangCode(FR)
TargetLangHU TargetLangCode = TargetLangCode(HU)
TargetLangIT TargetLangCode = TargetLangCode(IT)
TargetLangJA TargetLangCode = TargetLangCode(JA)
TargetLangLT TargetLangCode = TargetLangCode(LT)
TargetLangLV TargetLangCode = TargetLangCode(LV)
TargetLangNL TargetLangCode = TargetLangCode(NL)
TargetLangPL TargetLangCode = TargetLangCode(PL)
TargetLangPTPT TargetLangCode = TargetLangCode(PTPT)
TargetLangPTBR TargetLangCode = TargetLangCode(PTBR)
TargetLangPT TargetLangCode = TargetLangCode(PT)
TargetLangRO TargetLangCode = TargetLangCode(RO)
TargetLangRU TargetLangCode = TargetLangCode(RU)
TargetLangSK TargetLangCode = TargetLangCode(SK)
TargetLangSL TargetLangCode = TargetLangCode(SL)
TargetLangSV TargetLangCode = TargetLangCode(SV)
TargetLangZH TargetLangCode = TargetLangCode(ZH)
)

var langMap map[LangCode]string = map[LangCode]string{
Expand Down

0 comments on commit 7303a77

Please sign in to comment.