From 925dc052d7a596179a1fd8cb82ca5ad737343af2 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Sat, 6 Aug 2022 00:47:58 +0800 Subject: [PATCH] refactor: upgrade i18next --- packages/console/package.json | 6 +- .../console/src/pages/GetStarted/index.tsx | 4 +- packages/core/package.json | 2 +- packages/demo-app/package.json | 6 +- packages/ui/package.json | 6 +- pnpm-lock.yaml | 81 +++++++++---------- 6 files changed, 48 insertions(+), 57 deletions(-) diff --git a/packages/console/package.json b/packages/console/package.json index 2a3f11d9a..47f03491f 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -49,8 +49,8 @@ "dnd-core": "^16.0.0", "eslint": "^8.21.0", "history": "^5.3.0", - "i18next": "^21.6.12", - "i18next-browser-languagedetector": "^6.1.3", + "i18next": "^21.8.16", + "i18next-browser-languagedetector": "^6.1.4", "ky": "^0.31.0", "lint-staged": "^13.0.0", "lodash.kebabcase": "^4.1.1", @@ -68,7 +68,7 @@ "react-dom": "^18.0.0", "react-hook-form": "^7.34.0", "react-hot-toast": "^2.2.0", - "react-i18next": "^11.15.4", + "react-i18next": "^11.18.3", "react-markdown": "^8.0.0", "react-modal": "^3.15.1", "react-paginate": "^8.1.3", diff --git a/packages/console/src/pages/GetStarted/index.tsx b/packages/console/src/pages/GetStarted/index.tsx index 68f4b8ed1..2a1fe2820 100644 --- a/packages/console/src/pages/GetStarted/index.tsx +++ b/packages/console/src/pages/GetStarted/index.tsx @@ -53,8 +53,8 @@ const GetStarted = () => { {!isComplete && } {isComplete && }
-
{Boolean(t(title))}
-
{Boolean(t(subtitle))}
+
{String(t(title))}
+
{String(t(subtitle))}