Skip to content
5 changes: 5 additions & 0 deletions .changeset/silver-doors-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": major
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this a patch please

---

added ru_RU locale to SmartWallet component
1 change: 1 addition & 0 deletions packages/thirdweb/src/react/web/ui/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ export type LocaleId =
| "vi_VN"
| "de_DE"
| "fr_FR"
| "ru_RU"
| "pt_BR";
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import de from "./de.js";
import en from "./en.js";
import es from "./es.js";
import fr from "./fr.js";
import ru from "./ru.js";
import { getSmartWalletLocale } from "./getSmartWalletLocale.js";
import ja from "./ja.js";
import kr from "./kr.js";
Expand All @@ -19,6 +20,7 @@ const locales: { locale: LocaleId; content: object }[] = [
{ locale: "de_DE", content: de },
{ locale: "ko_KR", content: kr },
{ locale: "fr_FR", content: fr },
{ locale: "ru_RU", content: ru },
{ locale: "pt_BR", content: br },
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export async function getSmartWalletLocale(
return (await import("./kr.js")).default;
case "fr_FR":
return (await import("./fr.js")).default;
case "ru_RU":
return (await import("./ru.js")).default;
case "pt_BR": {
return (await import("./br.js")).default;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { SmartWalletLocale } from "./types.js";

const smartWalletLocalRu: SmartWalletLocale = {
connecting: "Подключение к смарт-аккаунту",
failedToConnect: "Не удалось подключиться к смарт-аккаунту",
wrongNetworkScreen: {
title: "Неверная сеть",
subtitle: "Ваш кошелек не подключен к нужной сети",
failedToSwitch: "Не удалось сменить сеть",
},
};

export default smartWalletLocalRu;