feat(v2): add japanese translations (#4303)

This commit is contained in:
Yamagishi Kazutoshi 2021-03-02 02:35:07 +09:00 committed by GitHub
parent 12afb9e1f5
commit 99d83995a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 98 additions and 33 deletions

View file

@ -14,7 +14,7 @@
"theme.SearchBar.label": "Search",
"theme.SearchPage.algoliaLabel": "Search by Algolia",
"theme.SearchPage.emptyResultsTitle": "Search the documentation",
"theme.SearchPage.existingResultsTitle": "Search results for",
"theme.SearchPage.existingResultsTitle": "Search results for \"{query}\"",
"theme.SearchPage.fetchingNewResults": "Fetching new results...",
"theme.SearchPage.inputLabel": "Search",
"theme.SearchPage.inputPlaceholder": "Type your search here",
@ -59,8 +59,8 @@
"theme.docs.versions.latestVersionSuggestionLabel": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).",
"theme.docs.versions.unmaintainedVersionLabel": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.",
"theme.docs.versions.unreleasedVersionLabel": "This is unreleased documentation for {siteTitle} {versionLabel} version.",
"theme.lastUpdated.atDate": "on {date}",
"theme.lastUpdated.byUser": "by {user}",
"theme.lastUpdated.atDate": " on {date}",
"theme.lastUpdated.byUser": " by {user}",
"theme.lastUpdated.lastUpdatedAtBy": "Last updated{atDate}{byUser}",
"theme.tags.tagsListLabel": "Tags:",
"theme.tags.tagsPageLink": "View All Tags",

View file

@ -14,7 +14,7 @@
"theme.SearchBar.label": "Suche",
"theme.SearchPage.algoliaLabel": "Suche von Algolia",
"theme.SearchPage.emptyResultsTitle": "Suche in der Dokumentation",
"theme.SearchPage.existingResultsTitle": "Suchergebnisse für",
"theme.SearchPage.existingResultsTitle": "Suchergebnisse für \"{query}\"",
"theme.SearchPage.fetchingNewResults": "Neue Ergebnisse abrufen...",
"theme.SearchPage.inputLabel": "Suche",
"theme.SearchPage.inputPlaceholder": "Geben Sie hier Ihre Suche ein",
@ -59,8 +59,8 @@
"theme.docs.versions.latestVersionSuggestionLabel": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).",
"theme.docs.versions.unmaintainedVersionLabel": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.",
"theme.docs.versions.unreleasedVersionLabel": "This is unreleased documentation for {siteTitle} {versionLabel} version.",
"theme.lastUpdated.atDate": "on {date}",
"theme.lastUpdated.byUser": "by {user}",
"theme.lastUpdated.atDate": " on {date}",
"theme.lastUpdated.byUser": " by {user}",
"theme.lastUpdated.lastUpdatedAtBy": "Last updated{atDate}{byUser}",
"theme.tags.tagsListLabel": "Tags:",
"theme.tags.tagsPageLink": "Alle Tags anzeigen",

View file

@ -14,7 +14,7 @@
"theme.SearchBar.label": "جستجو",
"theme.SearchPage.algoliaLabel": "جستجو با Algolia",
"theme.SearchPage.emptyResultsTitle": "جستجو در متن",
"theme.SearchPage.existingResultsTitle": "جستجو برای عبارت",
"theme.SearchPage.existingResultsTitle": "جستجو برای عبارت \"{query}\"",
"theme.SearchPage.fetchingNewResults": "در حال دریافت نتایج...",
"theme.SearchPage.inputLabel": "جستجو",
"theme.SearchPage.inputPlaceholder": "عبارت مورد نظر را اینجا بنویسید",
@ -59,8 +59,8 @@
"theme.docs.versions.latestVersionSuggestionLabel": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).",
"theme.docs.versions.unmaintainedVersionLabel": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.",
"theme.docs.versions.unreleasedVersionLabel": "This is unreleased documentation for {siteTitle} {versionLabel} version.",
"theme.lastUpdated.atDate": "on {date}",
"theme.lastUpdated.byUser": "by {user}",
"theme.lastUpdated.atDate": " on {date}",
"theme.lastUpdated.byUser": " by {user}",
"theme.lastUpdated.lastUpdatedAtBy": "Last updated{atDate}{byUser}",
"theme.tags.tagsListLabel": ":برچسب ها",
"theme.tags.tagsPageLink": "مشاهده تمام برچسب ها",

View file

@ -14,7 +14,7 @@
"theme.SearchBar.label": "Chercher",
"theme.SearchPage.algoliaLabel": "Recharche Algolia",
"theme.SearchPage.emptyResultsTitle": "Rechercher dans la documentation",
"theme.SearchPage.existingResultsTitle": "Rechercher des résultats pour",
"theme.SearchPage.existingResultsTitle": "Rechercher des résultats pour \"{query}\"",
"theme.SearchPage.fetchingNewResults": "Chargement de nouveaux résultats...",
"theme.SearchPage.inputLabel": "Chercher",
"theme.SearchPage.inputPlaceholder": "Tapez vôtre recherche ici",
@ -59,8 +59,8 @@
"theme.docs.versions.latestVersionSuggestionLabel": "Pour une documentation à jour, consultez la {latestVersionLink} ({versionLabel}).",
"theme.docs.versions.unmaintainedVersionLabel": "Ceci est la documentation de {siteTitle} {versionLabel}, qui n'est plus activement maintenue.",
"theme.docs.versions.unreleasedVersionLabel": "Ceci est la documentation de la prochaine version {versionLabel} de {siteTitle}.",
"theme.lastUpdated.atDate": "le {date}",
"theme.lastUpdated.byUser": "par {user}",
"theme.lastUpdated.atDate": " le {date}",
"theme.lastUpdated.byUser": " par {user}",
"theme.lastUpdated.lastUpdatedAtBy": "Dernière mise à jour{atDate}{byUser}",
"theme.tags.tagsListLabel": "Tags:",
"theme.tags.tagsPageLink": "Voir tous les tags",

View file

@ -0,0 +1,68 @@
{
"theme.AnnouncementBar.closeButtonAriaLabel": "閉じる",
"theme.CodeBlock.copied": "コピーしました",
"theme.CodeBlock.copy": "コピー",
"theme.CodeBlock.copyButtonAriaLabel": "クリップボードにコードをコピー",
"theme.NotFound.p1": "お探しのページが見つかりませんでした。",
"theme.NotFound.p2": "このページにリンクしているサイトの所有者に連絡をしてリンクが壊れていることを伝えてください。",
"theme.NotFound.title": "ページが見つかりません",
"theme.Playground.liveEditor": "Live Editor",
"theme.Playground.result": "Result",
"theme.PwaReloadPopup.closeButtonAriaLabel": "閉じる",
"theme.PwaReloadPopup.info": "新しいバージョンがあります",
"theme.PwaReloadPopup.refreshButtonText": "更新",
"theme.SearchBar.label": "検索",
"theme.SearchPage.algoliaLabel": "Algoliaで検索",
"theme.SearchPage.emptyResultsTitle": "ドキュメントを検索",
"theme.SearchPage.existingResultsTitle": "『{query}』の検索結果",
"theme.SearchPage.fetchingNewResults": "新しい検索結果を取得しています...",
"theme.SearchPage.inputLabel": "検索",
"theme.SearchPage.inputPlaceholder": "ここに検索するキーワードを入力してください",
"theme.SearchPage.noResultsText": "検索結果が見つかりませんでした",
"theme.blog.paginator.navAriaLabel": "ブログ記事一覧のナビゲーション",
"theme.blog.paginator.newerEntries": "新しい記事",
"theme.blog.paginator.olderEntries": "過去の記事",
"theme.blog.post.date": "{year}年{month}{day}日",
"theme.blog.post.nPosts": "{count}件",
"theme.blog.post.onePost": "1件",
"theme.blog.post.paginator.navAriaLabel": "ブログ記事のナビゲーション",
"theme.blog.post.paginator.newerPost": "新しい記事",
"theme.blog.post.paginator.olderPost": "過去の記事",
"theme.blog.post.readMore": "もっと見る",
"theme.blog.post.readingTime": "約{readingTime}分",
"theme.blog.tagTitle": "「{tagName}」タグの記事が{nPosts}あります",
"theme.common.editThisPage": "このページを編集",
"theme.common.headingLinkTitle": "見出しへの直接リンク",
"theme.common.month.april": "4月",
"theme.common.month.august": "8月",
"theme.common.month.december": "12月",
"theme.common.month.february": "2月",
"theme.common.month.january": "1月",
"theme.common.month.july": "7月",
"theme.common.month.june": "6月",
"theme.common.month.march": "3月",
"theme.common.month.may": "5月",
"theme.common.month.november": "11月",
"theme.common.month.october": "10月",
"theme.common.month.september": "9月",
"theme.common.skipToMainContent": "メインコンテンツまでスキップ",
"theme.docs.paginator.navAriaLabel": "ドキュメントのナビゲーション",
"theme.docs.paginator.next": "次へ",
"theme.docs.paginator.previous": "前へ",
"theme.docs.sidebar.collapseButtonAriaLabel": "サイドバーを隠す",
"theme.docs.sidebar.collapseButtonTitle": "サイドバーを隠す",
"theme.docs.sidebar.expandButtonAriaLabel": "サイドバーを開く",
"theme.docs.sidebar.expandButtonTitle": "サイドバーを開く",
"theme.docs.sidebar.responsiveCloseButtonLabel": "メニューを閉じる",
"theme.docs.sidebar.responsiveOpenButtonLabel": "メニューを開く",
"theme.docs.versions.latestVersionLinkLabel": "最新バージョン",
"theme.docs.versions.latestVersionSuggestionLabel": "最新のドキュメントは{latestVersionLink} ({versionLabel}) を見てください。",
"theme.docs.versions.unmaintainedVersionLabel": "これは{siteTitle} {versionLabel}のドキュメントで現在はアクティブにメンテナンスされていません。",
"theme.docs.versions.unreleasedVersionLabel": "これはリリース前の{siteTitle} {versionLabel}のドキュメントです。.",
"theme.lastUpdated.atDate": "{date}に",
"theme.lastUpdated.byUser": "{user}が",
"theme.lastUpdated.lastUpdatedAtBy": "{atDate}{byUser}最終更新",
"theme.tags.tagsListLabel": "タグ:",
"theme.tags.tagsPageLink": "全てのタグを見る",
"theme.tags.tagsPageTitle": "タグ"
}

View file

@ -14,7 +14,7 @@
"theme.SearchBar.label": "Поиск",
"theme.SearchPage.algoliaLabel": "Поиск предоставлен Algolia",
"theme.SearchPage.emptyResultsTitle": "Поиск по сайту",
"theme.SearchPage.existingResultsTitle": "Результаты поиска по запросу",
"theme.SearchPage.existingResultsTitle": "Результаты поиска по запросу \"{query}\"",
"theme.SearchPage.fetchingNewResults": "Загрузка новых результатов поиска...",
"theme.SearchPage.inputLabel": "Поиск",
"theme.SearchPage.inputPlaceholder": "Введите фразу для поиска",
@ -59,8 +59,8 @@
"theme.docs.versions.latestVersionSuggestionLabel": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).",
"theme.docs.versions.unmaintainedVersionLabel": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.",
"theme.docs.versions.unreleasedVersionLabel": "This is unreleased documentation for {siteTitle} {versionLabel} version.",
"theme.lastUpdated.atDate": "on {date}",
"theme.lastUpdated.byUser": "by {user}",
"theme.lastUpdated.atDate": " on {date}",
"theme.lastUpdated.byUser": " by {user}",
"theme.lastUpdated.lastUpdatedAtBy": "Last updated{atDate}{byUser}",
"theme.tags.tagsListLabel": "Теги:",
"theme.tags.tagsPageLink": "Посмотреть все теги",

View file

@ -27,7 +27,7 @@ function LastUpdatedAtDate({lastUpdatedAt}: {lastUpdatedAt: number}) {
</time>
),
}}>
{'on {date}'}
{' on {date}'}
</Translate>
);
}
@ -40,7 +40,7 @@ function LastUpdatedByUser({lastUpdatedBy}: {lastUpdatedBy: string}) {
values={{
user: <strong>{lastUpdatedBy}</strong>,
}}>
{'by {user}'}
{' by {user}'}
</Translate>
);
}
@ -61,18 +61,12 @@ export default function LastUpdated({
description="The sentence used to display when a page has been last updated, and by who"
values={{
atDate: lastUpdatedAt ? (
<>
{' '}
<LastUpdatedAtDate lastUpdatedAt={lastUpdatedAt} />
</>
<LastUpdatedAtDate lastUpdatedAt={lastUpdatedAt} />
) : (
''
),
byUser: lastUpdatedBy ? (
<>
{' '}
<LastUpdatedByUser lastUpdatedBy={lastUpdatedBy} />
</>
<LastUpdatedByUser lastUpdatedBy={lastUpdatedBy} />
) : (
''
),

View file

@ -236,11 +236,14 @@ function SearchPage() {
const getTitle = () =>
searchQuery
? `${translate({
? translate({
id: 'theme.SearchPage.existingResultsTitle',
message: 'Search results for',
message: 'Search results for "{query}"',
description: 'The search page title for non-empty query',
})} "${searchQuery}"`
values: {
query: searchQuery,
},
})
: translate({
id: 'theme.SearchPage.emptyResultsTitle',
message: 'Search the documentation',