Fix TypeError: Cannot read properties of undefined (reading 'split')
This commit is contained in:
parent
3dc7c23196
commit
8c18fb254d
@ -276,6 +276,8 @@ export function getProviderTranslation(provider, t) {
|
||||
|
||||
export function getLanguage(lng) {
|
||||
try {
|
||||
if (!lng) return lng;
|
||||
|
||||
let language = lng == "en-US" || lng == "en-GB" ? "en" : lng;
|
||||
|
||||
const splitted = lng.split("-");
|
||||
|
Loading…
Reference in New Issue
Block a user