Revert "Refactor auto-translations and add caching"
There are quite a few issues with this and is causing crashing
This reverts commit ae82114a33.
This commit is contained in:
@@ -22,14 +22,6 @@ func localizedStringFormat(key: String, locale: Locale?) -> String {
|
||||
return bundle.localizedString(forKey: key, value: fallback, table: nil)
|
||||
}
|
||||
|
||||
func currentLanguage() -> String {
|
||||
if #available(iOS 16, *) {
|
||||
return Locale.current.language.languageCode?.identifier ?? "en"
|
||||
} else {
|
||||
return Locale.current.languageCode ?? "en"
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Removes the variant part of a locale code so that it contains only the language code.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user