zitadel/internal/api/grpc/text/language.go

14 lines
232 B
Go
Raw Normal View History

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
}