Machine translation of posts (#4307)

This commit is contained in:
Willow 2024-03-09 16:12:18 +01:00 committed by GitHub
commit fbb22799dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 1912 additions and 180 deletions

View file

@ -80,3 +80,8 @@ fun getLocaleList(initialLanguages: List<String>): List<Locale> {
ensureLanguagesAreFirst(locales, initialLanguages)
return locales
}
fun localeNameForUntrustedISO639LangCode(code: String): String {
// It seems like it never throws?
return Locale(code).displayName
}