From 1979e8b7001647fb259182e9ee3537f3861db204 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Fri, 26 Apr 2019 16:07:44 +0200 Subject: [PATCH] Capitalize languages --- Passepartout/Sources/Utils.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Passepartout/Sources/Utils.swift b/Passepartout/Sources/Utils.swift index 5b4b11cd..f964e688 100644 --- a/Passepartout/Sources/Utils.swift +++ b/Passepartout/Sources/Utils.swift @@ -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() {