mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-03 19:04:39 -05:00
@@ -39,7 +39,7 @@ object LocalizationHelper {
|
|||||||
return if (headerLang == null || headerLang.isEmpty()) {
|
return if (headerLang == null || headerLang.isEmpty()) {
|
||||||
Locale.getDefault()
|
Locale.getDefault()
|
||||||
} else {
|
} else {
|
||||||
Locale.lookup(Locale.LanguageRange.parse(headerLang), supportedLocales)
|
Locale.lookup(Locale.LanguageRange.parse(headerLang), supportedLocales) ?: Locale.getDefault()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user