mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 20:38:00 +00:00
03a38fbf1c
* feat: add get custom message text to admin api * feat: read custom message texts from files * feat: get languages in apis * feat: get languages in apis * feat: get languages in apis * feat: pr feedback * feat: docs * feat: merge main
14 lines
232 B
Go
14 lines
232 B
Go
package text
|
|
|
|
import (
|
|
"golang.org/x/text/language"
|
|
)
|
|
|
|
func LanguageTagsToStrings(langs []language.Tag) []string {
|
|
result := make([]string, len(langs))
|
|
for i, lang := range langs {
|
|
result[i] = lang.String()
|
|
}
|
|
return result
|
|
}
|