diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 4d97952d96..ad7d90a8ef 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -354,6 +354,7 @@ reduceUiAnimation: "UIのアニメーションを減らす" share: "共有" notFound: "見つかりません" notFoundDescription: "指定されたURLに該当するページはありませんでした。" +help: "ヘルプ" _2fa: registerDevice: "デバイスを登録" diff --git a/src/client/app.vue b/src/client/app.vue index 61fd1ec382..35ae6afc91 100644 --- a/src/client/app.vue +++ b/src/client/app.vue @@ -137,7 +137,7 @@ diff --git a/src/client/router.ts b/src/client/router.ts index 48eaa0f2e3..f32673f432 100644 --- a/src/client/router.ts +++ b/src/client/router.ts @@ -21,6 +21,7 @@ export const router = new VueRouter({ { path: '/announcements', component: page('announcements') }, { path: '/about', component: page('about') }, { path: '/featured', component: page('featured') }, + { path: '/docs', component: page('docs') }, { path: '/docs/:doc', component: page('doc'), props: true }, { path: '/explore', component: page('explore') }, { path: '/explore/tags/:tag', props: true, component: page('explore') }, diff --git a/src/server/web/index.ts b/src/server/web/index.ts index 07674bf099..ae31139014 100644 --- a/src/server/web/index.ts +++ b/src/server/web/index.ts @@ -96,6 +96,11 @@ router.get('/api.json', async ctx => { ctx.body = genOpenapiSpec(); }); +router.get('/docs.json', async ctx => { + const lang = ctx.query.lang; + // TODO: glob mds and extract title +}); + const getFeed = async (acct: string) => { const { username, host } = parseAcct(acct); const user = await Users.findOne({