summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--locales/ja-JP.yml9
-rw-r--r--src/client/app/init.ts6
3 files changed, 13 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 1e12e20de2..9d109e0c05 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@ api-docs.json
/redis
/mongo
/elasticsearch
+*.code-workspace
diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index 7eced56ef5..ecdbce177c 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -25,6 +25,15 @@ common:
application-authorization: "アプリの連携"
close: "閉じる"
do-not-copy-paste: "ここにコードを入力したり張り付けたりしないでください。アカウントが不正利用される可能性があります。"
+ BSoD:
+ fatal-error: ":( 致命的な問題が発生しました。"
+ update-browser-os: "お使いのブラウザ(またはOS)のバージョンを更新すると解決する可能性があります。"
+ error-code: "エラーコード"
+ browser-version: "ブラウザ バージョン"
+ client-version: "クライアント バージョン"
+ email-support: "問題が解決しない場合は、上記の情報をお書き添えの上 syuilotan@yahoo.co.jp までご連絡ください。"
+ thanks: "Thank you for using Misskey."
+
got-it: "わかった"
customization-tips:
title: "カスタマイズのヒント"
diff --git a/src/client/app/init.ts b/src/client/app/init.ts
index 17d8f64c6a..905f9c6258 100644
--- a/src/client/app/init.ts
+++ b/src/client/app/init.ts
@@ -216,10 +216,10 @@ function panic(e) {
document.documentElement.style.background = '#1269e2';
document.body.innerHTML =
'<div id="error">'
- + '<h1>:( 致命的な問題が発生しました。</h1>'
- + '<p>お使いのブラウザ(またはOS)のバージョンを更新すると解決する可能性があります。</p>'
+ + '<h1>%i18n.common.BSoD.fatal-error%</h1>'
+ + '<p>%i18n.common.BSoD.update-browser-os%</p>'
+ '<hr>'
- + `<p>エラーコード: ${e.toString()}</p>`
+ + `<p>%i18n.common.BSoD.error-code%: ${e.toString()}</p>`
+ `<p>ブラウザ バージョン: ${navigator.userAgent}</p>`
+ `<p>クライアント バージョン: ${version}</p>`
+ '<hr>'