mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 19:14:23 +00:00
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
|
||
|
}
|