mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 02:03:09 +02:00
parent
f6c6ffaf64
commit
8e5e6f90cb
1 changed files with 4 additions and 0 deletions
|
@ -61,6 +61,10 @@
|
||||||
renderError('META_FETCH_V');
|
renderError('META_FETCH_V');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// for https://github.com/misskey-dev/misskey/issues/10202
|
||||||
|
if (lang == null || lang.toString == null || lang.toString() === 'null') lang = 'en-US';
|
||||||
|
|
||||||
const localRes = await window.fetch(`/assets/locales/${lang}.${v}.json`);
|
const localRes = await window.fetch(`/assets/locales/${lang}.${v}.json`);
|
||||||
if (localRes.status === 200) {
|
if (localRes.status === 200) {
|
||||||
localStorage.setItem('lang', lang);
|
localStorage.setItem('lang', lang);
|
||||||
|
|
Loading…
Reference in a new issue