表示言語が設定されてない場合、ブラウザの言語と関係なく日本語にする (MisskeyIO#175)

This commit is contained in:
まっちゃとーにゅ
2023-10-07 03:38:40 +09:00
committed by GitHub
parent a296a35460
commit e695c60a1d
3 changed files with 4 additions and 18 deletions

View File

@@ -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;