feat(i18n): Add Japanese to i18n (#809)

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
This commit is contained in:
松浦 知也 Matsuura Tomoya 2024-02-06 01:58:31 +09:00 committed by GitHub
parent b061b1b6a2
commit ba836dd3e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 65 additions and 0 deletions

View File

@ -1,11 +1,13 @@
import { Translation } from "./locales/definition" import { Translation } from "./locales/definition"
import en from "./locales/en-US" import en from "./locales/en-US"
import fr from "./locales/fr-FR" import fr from "./locales/fr-FR"
import ja from "./locales/ja-JP"
import de from "./locales/de-DE" import de from "./locales/de-DE"
export const TRANSLATIONS = { export const TRANSLATIONS = {
"en-US": en, "en-US": en,
"fr-FR": fr, "fr-FR": fr,
"ja-JP": ja,
"de-DE": de, "de-DE": de,
} as const } as const

View File

@ -0,0 +1,63 @@
import { Translation } from "./definition"
export default {
propertyDefaults: {
title: "無題",
description: "説明なし",
},
components: {
backlinks: {
title: "バックリンク",
noBacklinksFound: "バックリンクはありません",
},
themeToggle: {
lightMode: "ライトモード",
darkMode: "ダークモード",
},
explorer: {
title: "エクスプローラー",
},
footer: {
createdWith: "作成",
},
graph: {
title: "グラフビュー",
},
recentNotes: {
title: "最近の記事",
seeRemainingMore: ({ remaining }) => `さらに${remaining}件 →`,
},
transcludes: {
transcludeOf: ({ targetSlug }) => `${targetSlug}のまとめ`,
linkToOriginal: "元記事へのリンク",
},
search: {
title: "検索",
searchBarPlaceholder: "検索ワードを入力",
},
tableOfContents: {
title: "目次",
},
},
pages: {
rss: {
recentNotes: "最近の記事",
lastFewNotes: ({ count }) => `最新の${count}`,
},
error: {
title: "Not Found",
notFound: "ページが存在しないか、非公開設定になっています。",
},
folderContent: {
folder: "フォルダ",
itemsUnderFolder: ({ count }) => `${count}件のページ`,
},
tagContent: {
tag: "タグ",
tagIndex: "タグ一覧",
itemsUnderTag: ({ count }) => `${count}件のページ`,
showingFirst: ({ count }) => `のうち最初の${count}件を表示しています`,
totalTags: ({ count }) => `${count}個のタグを表示中`,
},
},
} as const satisfies Translation