Skip to content

Commit 4a19372

Browse files
committed
feat: add locales
1 parent 8cea0a2 commit 4a19372

File tree

2 files changed

+31
-10
lines changed

2 files changed

+31
-10
lines changed

packages/desktop/views/account/multi-step/ShowOneTimeAddress.svelte

+16-9
Original file line numberDiff line numberDiff line change
@@ -25,37 +25,44 @@
2525
alt={localize('views.implicit-account.steps.step1.title')}
2626
/>
2727
</div>
28-
<Text type={TextType.h3} fontWeight={FontWeight.semibold}>One-time deposit</Text>
28+
<Text type={TextType.h3} fontWeight={FontWeight.semibold}
29+
>{localize('views.implicit-account.steps.step1.view.title')}</Text
30+
>
2931
<Text type={TextType.h5} fontSize="15" color="blue-700" darkColor="blue-700" fontWeight={FontWeight.semibold}
30-
>3$ - 15$ recommended</Text
32+
>{localize('views.implicit-account.steps.step1.view.subtitle')}</Text
3133
>
3234
<Text type={TextType.h5} fontWeight={FontWeight.normal} color="gray-700" darkColor="gray-500"
33-
>Send enough funds to using your one-time address so the account can be generated with low waiting times.
34-
The funds are your to use after the account has been created.</Text
35+
>{localize('views.implicit-account.steps.step1.view.body')}</Text
3536
>
3637
</div>
3738
{#if !isAddressShown}
3839
<div class="flex flex-row items-center space-x-24 bg-yellow-200 rounded-lg px-6 py-7 max-w-lg mb-5">
3940
<Text type={TextType.h4} fontWeight={FontWeight.medium} color="yellow-900" darkColor="yellow-900"
40-
>Do not send funds to the address more than once</Text
41+
>{localize('views.implicit-account.steps.step1.view.hiddenAddress.description')}</Text
42+
>
43+
<Button onClick={showAddress} classes="shrink-0"
44+
>{localize('views.implicit-account.steps.step1.view.hiddenAddress.action')}</Button
4145
>
42-
<Button onClick={showAddress} classes="shrink-0">Show Address</Button>
4346
</div>
4447
{:else}
4548
<div class="flex flex-col justify-center items-center space-y-3">
4649
<div
4750
class="flex flex-row items-center space-x-20 bg-gray-100 dark:bg-gray-800 rounded-lg px-6 py-4 max-w-lg"
4851
>
4952
<div class="flex flex-col space-y-1">
50-
<Text type={TextType.h5} fontWeight={FontWeight.normal} darkColor="gray-400">One-time Address</Text>
53+
<Text type={TextType.h5} fontWeight={FontWeight.normal} darkColor="gray-400"
54+
>{localize('views.implicit-account.steps.step1.view.oneTimeAddress.title')}</Text
55+
>
5156
<Text type={TextType.pre} fontSize="14" fontWeight={FontWeight.medium} color="gray-50"
5257
>{DUMMY_ADDRESS}</Text
5358
>
5459
</div>
55-
<Button outline onClick={onCopyClick} classes="shrink-0">Copy</Button>
60+
<Button outline onClick={onCopyClick} classes="shrink-0"
61+
>{localize('views.implicit-account.steps.step1.view.oneTimeAddress.action')}</Button
62+
>
5663
</div>
5764
<Text type={TextType.h5} fontWeight={FontWeight.normal} color="red-600" darkColor="red-600"
58-
>Do not sent fund to this address more than once</Text
65+
>{localize('views.implicit-account.steps.step1.view.oneTimeAddress.tip')}</Text
5966
>
6067
</div>
6168
{/if}

packages/shared/locales/en.json

+15-1
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,21 @@
661661
"steps" : {
662662
"step1": {
663663
"title": "Step 1",
664-
"body": "One-time deposit"
664+
"body": "One-time deposit",
665+
"view": {
666+
"title": "One-time deposit",
667+
"subtitle": "3$ - 15$ recommended",
668+
"body": "Send enough funds to using your one-time address so the account can be generated with low waiting times. The funds are your to use after the account has been created.",
669+
"hiddenAddress": {
670+
"description": "Do not send funds to the address more than once",
671+
"action": "Show Address"
672+
},
673+
"oneTimeAddress": {
674+
"title": "One-time Address",
675+
"action": "Copy",
676+
"tip": "Do not sent fund to this address more than once"
677+
}
678+
}
665679
},
666680
"step2": {
667681
"title": "Step 2",

0 commit comments

Comments
 (0)