mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-17 06:14:21 +01:00
Add i18n to initial welcome screen
This commit is contained in:
committed by
Tony Giorgio
parent
c955626206
commit
3cc587d737
@@ -760,6 +760,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"setup": {
|
"setup": {
|
||||||
|
"initial": {
|
||||||
|
"welcome": "Welcome to the Mutiny!",
|
||||||
|
"new_wallet": "New Wallet",
|
||||||
|
"import_existing": "Import Existing",
|
||||||
|
"reporting": "Allow anonymous error reporting to help us improve the app. You can opt out at any time."
|
||||||
|
},
|
||||||
"new_profile": {
|
"new_profile": {
|
||||||
"description": "Mutiny makes payments social.",
|
"description": "Mutiny makes payments social.",
|
||||||
"title": "Create your profile"
|
"title": "Create your profile"
|
||||||
|
|||||||
@@ -3,10 +3,12 @@ import { createEffect, createSignal } from "solid-js";
|
|||||||
|
|
||||||
import logo from "~/assets/mutiny-pixel-logo.png";
|
import logo from "~/assets/mutiny-pixel-logo.png";
|
||||||
import { Button, DefaultMain, NiceP } from "~/components";
|
import { Button, DefaultMain, NiceP } from "~/components";
|
||||||
|
import { useI18n } from "~/i18n/context";
|
||||||
import { useMegaStore } from "~/state/megaStore";
|
import { useMegaStore } from "~/state/megaStore";
|
||||||
|
|
||||||
export function Setup() {
|
export function Setup() {
|
||||||
const [_state, actions] = useMegaStore();
|
const [_state, actions] = useMegaStore();
|
||||||
|
const i18n = useI18n();
|
||||||
|
|
||||||
const [isCreatingNewWallet, setIsCreatingNewWallet] = createSignal(false);
|
const [isCreatingNewWallet, setIsCreatingNewWallet] = createSignal(false);
|
||||||
const [isDiagnosticReportingEnabled, setIsDiagnosticReportingEnabled] =
|
const [isDiagnosticReportingEnabled, setIsDiagnosticReportingEnabled] =
|
||||||
@@ -62,14 +64,14 @@ export function Setup() {
|
|||||||
class="h-[50px] w-[172px]"
|
class="h-[50px] w-[172px]"
|
||||||
alt="Mutiny Plus logo"
|
alt="Mutiny Plus logo"
|
||||||
/>
|
/>
|
||||||
<NiceP>Welcome to the Mutiny!</NiceP>
|
<NiceP>{i18n.t("setup.initial.welcome")}</NiceP>
|
||||||
<div class="h-4" />
|
<div class="h-4" />
|
||||||
<Button
|
<Button
|
||||||
layout="full"
|
layout="full"
|
||||||
onClick={handleNewWallet}
|
onClick={handleNewWallet}
|
||||||
loading={isCreatingNewWallet()}
|
loading={isCreatingNewWallet()}
|
||||||
>
|
>
|
||||||
New Wallet
|
{i18n.t("setup.initial.new_wallet")}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
intent="text"
|
intent="text"
|
||||||
@@ -77,7 +79,7 @@ export function Setup() {
|
|||||||
disabled={isCreatingNewWallet()}
|
disabled={isCreatingNewWallet()}
|
||||||
onClick={() => navigate("/setup/restore")}
|
onClick={() => navigate("/setup/restore")}
|
||||||
>
|
>
|
||||||
Import Existing
|
{i18n.t("setup.initial.import_existing")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1" />
|
<div class="flex-1" />
|
||||||
@@ -91,8 +93,7 @@ export function Setup() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
Allow anonymous error reporting to help us improve the app.
|
{i18n.t("setup.initial.reporting")}
|
||||||
You can opt out at any time.
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</DefaultMain>
|
</DefaultMain>
|
||||||
|
|||||||
Reference in New Issue
Block a user