feat: bundled locale

This commit is contained in:
Acid Chicken (硫酸鶏)
2025-03-20 19:03:53 +09:00
parent 6015254e59
commit f066247988
17 changed files with 179 additions and 184 deletions

View File

@@ -17,8 +17,7 @@ export const apiUrl = location.origin + '/api';
export const wsOrigin = location.origin;
export const lang = localStorage.getItem('lang') ?? 'en-US';
export const langs = _LANGS_;
const preParseLocale = localStorage.getItem('locale');
export let locale: Locale = preParseLocale ? JSON.parse(preParseLocale) : null;
export let locale: Locale;
export const version = _VERSION_;
export const instanceName = (siteName === 'Misskey' || siteName == null) ? host : siteName;
export const ui = localStorage.getItem('ui');