diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index cb5e5d757..4d97952d9 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -352,6 +352,8 @@ autoReloadWhenDisconnected: "サーバー切断時に自動リロード" autoNoteWatch: "ノートの自動ウォッチ" reduceUiAnimation: "UIのアニメーションを減らす" share: "共有" +notFound: "見つかりません" +notFoundDescription: "指定されたURLに該当するページはありませんでした。" _2fa: registerDevice: "デバイスを登録" diff --git a/src/client/pages/not-found.vue b/src/client/pages/not-found.vue new file mode 100644 index 000000000..05bd34772 --- /dev/null +++ b/src/client/pages/not-found.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/src/client/router.ts b/src/client/router.ts index 70bc48c49..c1140355f 100644 --- a/src/client/router.ts +++ b/src/client/router.ts @@ -53,7 +53,7 @@ export const router = new VueRouter({ { path: '/auth/:token', component: page('auth') }, { path: '/authorize-follow', component: page('follow') }, { path: '/share', component: page('share') }, - /*{ path: '*', component: MkNotFound }*/ + { path: '*', component: page('not-found') } ], // なんかHacky // 通常の使い方をすると scroll メソッドの behavior を設定できないため、自前で window.scroll するようにする