github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/language/languages.go (about) 1 /* For license and copyright information please see LEGAL file in repository */ 2 3 package lang 4 5 const ( 6 // EnglishLanguage language code 7 EnglishLanguage uint32 = iota 8 // PersianLanguage language code 9 PersianLanguage 10 ) 11 12 // LanguageDetail use to store other detail for a language 13 type LanguageDetail struct { 14 Code uint32 15 Description []string 16 ScriptsID []uint32 // 17 } 18 19 // LanguagesDetails store all available language in 20 var LanguagesDetails = map[uint32]LanguageDetail{ 21 EnglishLanguage: LanguageDetail{ 22 Code: EnglishLanguage, 23 Description: []string{"English", "انگلیسی"}, 24 }, 25 PersianLanguage: LanguageDetail{ 26 Code: PersianLanguage, 27 Description: []string{"Persian", "پارسی"}, 28 }, 29 }