diff --git a/package-lock.json b/package-lock.json index 2dd8314ea..582a48630 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5664,14 +5664,14 @@ } }, "node_modules/@toruslabs/openlogin": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin/-/openlogin-6.2.2.tgz", - "integrity": "sha512-aFj5Hzes1UFCDjqQx9RwISJJl1nIIXVhiFb7VIT2JFueYfFbNOBXKRaKEw9Yw1Q9lVIa+C8FX8+lf6gnjX8ADQ==", + "version": "6.2.5", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin/-/openlogin-6.2.5.tgz", + "integrity": "sha512-8jykMP+aNYv+HUGOqVDtVRdQq/clI2M9PpUc0FSEw4VGKmjC8a/jxNaVxxs6LMrKu1wq07t3tJbGBtboeKxWhQ==", "dependencies": { "@toruslabs/eccrypto": "^4.0.0", "@toruslabs/metadata-helpers": "^5.0.0", "@toruslabs/openlogin-session-manager": "^3.0.0", - "@toruslabs/openlogin-utils": "^6.2.2", + "@toruslabs/openlogin-utils": "^6.2.5", "@toruslabs/secure-pub-sub": "^0.0.1", "bowser": "^2.11.0", "events": "^3.3.0", @@ -5702,12 +5702,12 @@ } }, "node_modules/@toruslabs/openlogin-jrpc": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-6.2.2.tgz", - "integrity": "sha512-DzZ6uqBhsay9F2R61aqmFWMtZBm0o7G4gBj1imMURad+bOfOr6aSJbhk+6ZANGfijVB7ieb7uNyAIYJLrgmYiA==", + "version": "6.2.5", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-6.2.5.tgz", + "integrity": "sha512-XjvVG9TdjXEDRBfxf/roYnH2MQiJezOTRxyGQF8iB4SkOoG+u633d8nnH6uBx2ZT6yqiieDr8j0OT7w4tG+jRQ==", "dependencies": { "@metamask/rpc-errors": "^6.1.0", - "@toruslabs/openlogin-utils": "^6.2.2", + "@toruslabs/openlogin-utils": "^6.2.5", "end-of-stream": "^1.4.4", "events": "^3.3.0", "fast-safe-stringify": "^2.1.1", @@ -5756,9 +5756,9 @@ } }, "node_modules/@toruslabs/openlogin-utils": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-utils/-/openlogin-utils-6.2.2.tgz", - "integrity": "sha512-+NBC8QB0HEcQT8T8DYiNZcdjjm1pL1slXXhiFcy7yNxq7tgUmRCfS2+b+t1ftmuE9tSbA7tW4V+uPPWjBYJKww==", + "version": "6.2.5", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-utils/-/openlogin-utils-6.2.5.tgz", + "integrity": "sha512-qOybDs8ZcpOSDM3lkMs+fjafDvucctwskDRyfilGvWYfgU2Bh7RWnKagaW/QqHPJEApypyOAUAiCNTl+m03KPQ==", "dependencies": { "@toruslabs/constants": "^13.1.0", "base64url": "^3.0.1" @@ -30563,9 +30563,9 @@ "license": "ISC", "dependencies": { "@toruslabs/http-helpers": "^6.0.0", - "@toruslabs/openlogin": "^6.2.2", - "@toruslabs/openlogin-jrpc": "^6.2.2", - "@toruslabs/openlogin-utils": "^6.2.2", + "@toruslabs/openlogin": "^6.2.5", + "@toruslabs/openlogin-jrpc": "^6.2.5", + "@toruslabs/openlogin-utils": "^6.2.5", "@web3auth/base": "^7.3.1", "bowser": "^2.11.0", "classnames": "^2.5.1", diff --git a/packages/ui/package.json b/packages/ui/package.json index c2cfb2051..67c36f175 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -64,9 +64,9 @@ }, "dependencies": { "@toruslabs/http-helpers": "^6.0.0", - "@toruslabs/openlogin": "^6.2.2", - "@toruslabs/openlogin-jrpc": "^6.2.2", - "@toruslabs/openlogin-utils": "^6.2.2", + "@toruslabs/openlogin": "^6.2.5", + "@toruslabs/openlogin-jrpc": "^6.2.5", + "@toruslabs/openlogin-utils": "^6.2.5", "@web3auth/base": "^7.3.1", "bowser": "^2.11.0", "classnames": "^2.5.1", @@ -97,4 +97,4 @@ "node": ">=18.x", "npm": ">=9.x" } -} +} \ No newline at end of file diff --git a/packages/ui/src/i18n/index.ts b/packages/ui/src/i18n/index.ts index fb40da3da..68656f846 100644 --- a/packages/ui/src/i18n/index.ts +++ b/packages/ui/src/i18n/index.ts @@ -7,6 +7,6 @@ import ko from "./korean.json"; import zh from "./mandarin.json"; import pt from "./portuguese.json"; import es from "./spanish.json"; -import tk from "./turkish.json"; +import tr from "./turkish.json"; -export { de, en, es, fr, ja, ko, nl, pt, tk, zh }; +export { de, en, es, fr, ja, ko, nl, pt, tr, zh }; diff --git a/packages/ui/src/loginModal.tsx b/packages/ui/src/loginModal.tsx index fbb011753..2ca529e64 100644 --- a/packages/ui/src/loginModal.tsx +++ b/packages/ui/src/loginModal.tsx @@ -153,7 +153,7 @@ class LoginModal extends SafeEventEmitter { .catch((error) => { log.error(error); }); - } else if (useLang === "tk") { + } else if (useLang === "tr") { import(`./i18n/turkish.json`) .then((messages) => { i18n.addResourceBundle(useLang as string, "translation", messages.default); diff --git a/packages/ui/src/utils.ts b/packages/ui/src/utils.ts index 6b3e5b10b..d67c05bfb 100644 --- a/packages/ui/src/utils.ts +++ b/packages/ui/src/utils.ts @@ -96,7 +96,7 @@ export const languageMap: Record = { fr: "french", pt: "portuguese", nl: "dutch", - tk: "turkish", + tr: "turkish", }; interface NavigatorLanguage {