From 23fb45e7685b3a93e3e7b0f93329d298ebab5d05 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 30 Jan 2023 21:36:12 +0000 Subject: [PATCH 1/3] chore(deps): update docker/build-push-action action to v4 --- .github/workflows/docker-build-push-dev.yml | 2 +- .github/workflows/docker-build-push-prod.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build-push-dev.yml b/.github/workflows/docker-build-push-dev.yml index 799ab037..80a8a9eb 100644 --- a/.github/workflows/docker-build-push-dev.yml +++ b/.github/workflows/docker-build-push-dev.yml @@ -37,7 +37,7 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: context: . file: Dockerfile diff --git a/.github/workflows/docker-build-push-prod.yml b/.github/workflows/docker-build-push-prod.yml index 5307544d..c8a104fd 100644 --- a/.github/workflows/docker-build-push-prod.yml +++ b/.github/workflows/docker-build-push-prod.yml @@ -37,7 +37,7 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: context: . file: Dockerfile From e96a10ecb40b97b470f662382f6d5754e5cf18da Mon Sep 17 00:00:00 2001 From: zhixuan Date: Sun, 26 Feb 2023 07:00:22 +0000 Subject: [PATCH 2/3] feat(i18n): add Japanese translation --- public/locales/ja/common.json | 51 +++++++++++++++++++++++++++++++++++ public/locales/ja/site.json | 10 +++++++ 2 files changed, 61 insertions(+) create mode 100644 public/locales/ja/common.json create mode 100644 public/locales/ja/site.json diff --git a/public/locales/ja/common.json b/public/locales/ja/common.json new file mode 100644 index 00000000..87042ca0 --- /dev/null +++ b/public/locales/ja/common.json @@ -0,0 +1,51 @@ +{ + "Connect": "连接", + "Followers": "フォロワー", + "Following": "フォロー中", + "Followings": "フォロー中", + "Follow": "フォローする", + "Unfollow": "フォローを解除", + "intlDateTime": "{{val, datetime}}", + "post": "ポスト", + "posts": "ポスト", + "page": "ページ", + "pages": "ページ", + "comment": "コメント", + "comments": "コメント", + "Comment": "コメント", + "Comments": "コメント", + "reply": "返信", + "replies": "返信", + "like": "いいね", + "likes": "いいね", + "blog": "ブログ", + "Owner": "所有者", + "Transaction Hash": "トランザクション ハッシュ", + "IPFS Address": "IPFS アドレス", + "Creation": "作成", + "Last Update": "最後更新", + "Create Character": "キャラクター作成", + "Submit": "送信", + "Reply": "返事", + "Cancel Reply": "返事をキャンセル", + "ago": "{{time}}以前", + "joined ago": "{{time}}に参加した", + "Mint to an NFT": "NFTにミント", + "Like successfull": "いいね成功した", + "Mint successfull": "ミント成功した", + "like stored": "あなたのいいねはブロックチェーン上に安全に保存されました, <2>Crossbell Scan にて確認できます", + "mint stored": "あなたのポストはNFTにミントされました、<2>xChar または <6>Crossbell Scan にて確認できます", + "Got it, thanks!": "わかりました、ありがとう!", + "Like List": "いいねリスト", + "Mint List": "ミントリスト", + "No Content Yet.": "まだコンテンツがありません", + "Close": "閉じる", + "Dashboard": "ダッシュボード", + "Copied!": "コピーしました", + "Operator Sign": "bio", + "Switch Characters": "キャラクターを変更", + "Upgrade to Wallet": "ウォレットにアップグレード", + "Disconnect": "接続を切断", + "Loading": "ロード中", + "Showcase": "ショーケース" +} \ No newline at end of file diff --git a/public/locales/ja/site.json b/public/locales/ja/site.json new file mode 100644 index 00000000..ba34bedb --- /dev/null +++ b/public/locales/ja/site.json @@ -0,0 +1,10 @@ +{ + "Home": "ホーム", + "Archives": "アーカイブ", + "About": "ついて", + "Tags": "タグ", + "load more": "{{count}} 個{{name}}があります、クリックしてロードする", + "signed and stored on the blockchain": "この{{name}}は創作者によってサインされ安全にブロックチェーンに保存されました", + "Write a comment on the blockchain": "ブロックチェーン上にあなたのコメントを。", + "powered by": " によって提供されます" +} \ No newline at end of file From c72fa7fcac2f1424125b196d5be845f7448f507d Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sun, 26 Feb 2023 16:02:20 +0000 Subject: [PATCH 3/3] fix: ja language support --- next-i18next.config.js | 2 +- src/hooks/useDate.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/next-i18next.config.js b/next-i18next.config.js index a733b6a9..0b64ac2c 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -1,7 +1,7 @@ module.exports = { i18n: { defaultLocale: "en", - locales: ["en", "zh"], + locales: ["en", "zh", "ja"], reloadOnPrerender: process.env.NODE_ENV === "development", }, } diff --git a/src/hooks/useDate.ts b/src/hooks/useDate.ts index 7fc0e7e8..4ae3608a 100644 --- a/src/hooks/useDate.ts +++ b/src/hooks/useDate.ts @@ -6,8 +6,9 @@ import localizedFormat from "dayjs/plugin/localizedFormat" import duration from "dayjs/plugin/duration" import relativeTime from "dayjs/plugin/relativeTime" import { useTranslation } from "next-i18next" -import "dayjs/locale/zh" import "dayjs/locale/en" +import "dayjs/locale/zh" +import "dayjs/locale/ja" dayjs.extend(localizedFormat) dayjs.extend(utc)