Capitalize languages

This commit is contained in:
Davide De Rosa 2019-04-26 16:07:44 +02:00
parent ebddbe9f4b
commit 1979e8b700
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ public class Utils {
}
public static func localizedLanguage(_ code: String) -> String {
return Locale.current.localizedString(forLanguageCode: code) ?? code
return Locale.current.localizedString(forLanguageCode: code)?.capitalized ?? code
}
private init() {