Skip to content

Commit

Permalink
Localized account switcher content
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed Feb 24, 2025
1 parent cb69f6f commit e692369
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
7 changes: 6 additions & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
"common_about_something": "About {thing}",
"common_account": "Actor",
"common_account_balance": "Account Balance",
"common_account_multisig_using_account": "multisig using {account}",
"common_action": "Action",
"common_actions": "Actions",
"common_actor": "Actor",
"common_add_account": "Add Account",
"common_add_funds": "Add Funds",
"common_amount": "Amount",
"common_amount_exceeds_balance": "Amount exceeds available balance.",
Expand All @@ -41,12 +43,14 @@
"common_breakdown": "Breakdown",
"common_buy": "Buy",
"common_bytes": "Bytes",
"common_cancel": "Cancel",
"common_claim": "Claim",
"common_clear": "Clear",
"common_close": "Close",
"common_complete": "Complete",
"common_confirm": "Confirm",
"common_connect_wallet": "Connect Wallet",
"common_connect_wallet_login": "Connect your wallet to login",
"common_contract": "Contract",
"common_copied_result": "Copied!",
"common_copy": "Copy",
Expand All @@ -73,6 +77,7 @@
"common_labeled_unit_staked": "{unit} Staked",
"common_labeled_unit_value": "{unit} Value",
"common_login": "Login",
"common_login_to_unicove": "Login to Unicove",
"common_market_cap": "Market Cap",
"common_memo": "Memo",
"common_must_be_logged_in": "You must be logged in with an account to use this feature.",
Expand Down Expand Up @@ -306,7 +311,7 @@
"navigation_balances": "Balances",
"navigation_overview": "Overview",
"navigation_permissions": "Permissions",
"navigation_proposals": "Proposals ({number})",
"navigation_proposals": "Proposals",
"navigation_resources": "Resources",
"navigation_staked": "Staked",
"navigation_votes": "Votes",
Expand Down
2 changes: 1 addition & 1 deletion messages/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
"navigation_balances": "잔액",
"navigation_overview": "개요",
"navigation_permissions": "권한",
"navigation_proposals": "제안 ({number})",
"navigation_proposals": "제안",
"navigation_resources": "자원",
"navigation_staked": "지분을 걸다",
"navigation_votes": "투표",
Expand Down
2 changes: 1 addition & 1 deletion messages/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
"navigation_balances": "余额",
"navigation_overview": "概览",
"navigation_permissions": "权限",
"navigation_proposals": "提案 ({number})",
"navigation_proposals": "提案",
"navigation_resources": "资源",
"navigation_staked": "质押中",
"navigation_votes": "投票",
Expand Down
14 changes: 9 additions & 5 deletions src/lib/components/accountswitch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
<Button onclick={addAccount} variant="secondary" class="grow-0 text-white">
<div class="flex items-center gap-2">
<UserPlus class="mb-0.5 size-5" />
<span>Add Account</span>
<span>{m.common_add_account()}</span>
</div>
</Button>

Expand Down Expand Up @@ -260,7 +260,9 @@
<div>{session.actor}@{session.permission}</div>
{#if session.walletPlugin.id === 'wallet-plugin-multisig'}
<div class="text-xs">
↳ multisig using {session.walletPlugin.data.session.actor}
↳ {m.common_account_multisig_using_account({
account: session.walletPlugin.data.session.actor
})}
</div>
{/if}
</div>
Expand Down Expand Up @@ -294,8 +296,8 @@
<hr class="border-mineShaft-900" />

<header class="grid justify-center gap-2 py-4 text-center">
<span class="h4">Login to Unicove</span>
<span class="text-muted text-sm font-medium">Connect your wallet to login</span>
<span class="h4">{m.common_login_to_unicove()}</span>
<span class="text-muted text-sm font-medium">{m.common_connect_wallet_login()}</span>
</header>

{#if context.wharf.sessionKit}
Expand Down Expand Up @@ -327,7 +329,9 @@
<!-- <Button href={`/${network}/signup`} onclick={closeDrawer} variant="primary"> -->
<!-- Create account -->
<!-- </Button> -->
<Button class="text-white" onclick={closeAddingAccount} variant="secondary">Cancel</Button>
<Button class="text-white" onclick={closeAddingAccount} variant="secondary"
>{m.common_cancel()}</Button
>
</div>
</div>
{/snippet}

0 comments on commit e692369

Please sign in to comment.