表示言語が設定されてない場合、ブラウザの言語と関係なく日本語にする (MisskeyIO#175)
This commit is contained in:
parent
a296a35460
commit
e695c60a1d
3 changed files with 4 additions and 18 deletions
|
|
@ -13,7 +13,7 @@ export const hostname = address.hostname;
|
|||
export const url = address.origin;
|
||||
export const apiUrl = url + '/api';
|
||||
export const wsUrl = url.replace('http://', 'ws://').replace('https://', 'wss://') + '/streaming';
|
||||
export const lang = miLocalStorage.getItem('lang') ?? 'en-US';
|
||||
export const lang = miLocalStorage.getItem('lang') ?? 'ja-JP';
|
||||
export const langs = _LANGS_;
|
||||
const preParseLocale = miLocalStorage.getItem('locale');
|
||||
export let locale = preParseLocale ? JSON.parse(preParseLocale) : null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue