mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 11:40:49 +00:00
* enhance(backend): pugをやめ、JSXベースのテンプレートに変更 (to misskey-dev dev branch) (#16889)
* wip
* wip
* wip
* wip
* fix lint
* attempt to fix test
* fix
* fix
* fix: oauthページの描画がおかしい問題を修正
* typo [ci skip]
* fix
* fix
* fix
* fix
* fix
* refactor
* fix
* fix
* fix broken lockfile
* fix: expose supported languages as global variable
* remove i18n package from root as it is no longer required [ci skip]
* fix
* fix: add i18n package.json to Docker target-builder stage for federation tests (#16909)
* Initial plan
* fix: add i18n package.json to Docker target-builder stage for federation tests
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix: followup-test-federation for enh-remove-pug (#16910)
* fix: followup-test-federation for enh-remove-pug
* Revert "fix: add i18n package.json to Docker target-builder stage for federation tests (#16909)"
This reverts commit 14313468d3.
* fix: CSSが読み込まれない場合がある問題を修正
* fix [ci skip]
* fix: propsのデフォルト値をnull合体演算子から論理和演算子に変更(空文字に対処するため)
* remove @types/pug
* enhance: bootloaderを埋め込むように
* fix possible race condition
* remove esbuild
---------
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Co-authored-by: おさむのひと <46447427+samunohito@users.noreply.github.com>
41 lines
1.3 KiB
JavaScript
41 lines
1.3 KiB
JavaScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
(() => {
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
const locale = JSON.parse(localStorage.getItem('locale') || '{}');
|
|
|
|
const messages = Object.assign({
|
|
title: 'Failed to initialize Misskey',
|
|
serverError: 'If reloading after a period of time does not resolve the problem, contact the server administrator with the following ERROR ID.',
|
|
solution: 'The following actions may solve the problem.',
|
|
solution1: 'Update your os and browser',
|
|
solution2: 'Disable an adblocker',
|
|
solution3: 'Clear the browser cache',
|
|
solution4: '(Tor Browser) Set dom.webaudio.enabled to true',
|
|
otherOption: 'Other options',
|
|
otherOption1: 'Clear preferences and cache',
|
|
otherOption2: 'Start the simple client',
|
|
otherOption3: 'Start the repair tool',
|
|
}, locale?._bootErrors || {});
|
|
const reload = locale?.reload || 'Reload';
|
|
|
|
const reloadEls = document.querySelectorAll('[data-i18n-reload]');
|
|
for (const el of reloadEls) {
|
|
el.textContent = reload;
|
|
}
|
|
|
|
const i18nEls = document.querySelectorAll('[data-i18n]');
|
|
for (const el of i18nEls) {
|
|
const key = el.dataset.i18n;
|
|
if (key && messages[key]) {
|
|
el.textContent = messages[key];
|
|
}
|
|
}
|
|
});
|
|
})();
|