set en-gb as override for mk-js global instead of en-us

This commit is contained in:
vapormusic 2022-02-10 20:10:38 +07:00
parent f71a22b8e9
commit 81239fa900
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View file

@ -324,3 +324,4 @@ resources/b64.txt
savedconfig/cider-config.json savedconfig/cider-config.json
savedconfig/config.json savedconfig/config.json
savedconfig/session.json savedconfig/session.json
savedconfig/window-state.json

View file

@ -3623,6 +3623,7 @@ const app = new Vue({
} else if (u && u.includes('_') && langcodes.includes(((u.toLowerCase()).replace('_', "-")).split("-")[0])) { } else if (u && u.includes('_') && langcodes.includes(((u.toLowerCase()).replace('_', "-")).split("-")[0])) {
sellang = ((u.toLowerCase()).replace('_', "-")).split("-")[0] sellang = ((u.toLowerCase()).replace('_', "-")).split("-")[0]
} }
if (sellang.startsWith("en") && this.mk.storefrontId != "en-us") sellang = "en-gb"
return sellang return sellang
} }
} }