diff --git a/src/components/ChooseLanguage.tsx b/src/components/ChooseLanguage.tsx index 360529da..f1bb7c6e 100644 --- a/src/components/ChooseLanguage.tsx +++ b/src/components/ChooseLanguage.tsx @@ -23,7 +23,7 @@ export function ChooseLanguage() { const [_chooseLanguageForm, { Form, Field }] = createForm({ initialValues: { - selectedLanguage: state.lang ?? "" + selectedLanguage: state.lang ?? i18n.language }, validate: (values) => { const errors: Record = {}; diff --git a/src/components/MutinyPlusCta.tsx b/src/components/MutinyPlusCta.tsx index de7c1f2b..58755745 100644 --- a/src/components/MutinyPlusCta.tsx +++ b/src/components/MutinyPlusCta.tsx @@ -29,7 +29,8 @@ export function MutinyPlusCta() { >
- Mutiny+ + {i18n.t("common.mutiny")} + + go
diff --git a/src/i18n/en/translations.ts b/src/i18n/en/translations.ts index 4349a78b..1a7888e5 100644 --- a/src/i18n/en/translations.ts +++ b/src/i18n/en/translations.ts @@ -1,6 +1,7 @@ export default { common: { title: "Mutiny Wallet", + mutiny: "Mutiny", nice: "Nice", home: "Home", e_sats: "eSATS", @@ -394,6 +395,8 @@ export default { } }, encrypt: { + title: "Change Password", + caption: "Backup first to unlock encryption", header: "Encrypt your seed words", hot_wallet_warning: 'Mutiny is a "hot wallet" so it needs your seed word to operate, but you can optionally encrypt those words with a password.', @@ -530,10 +533,12 @@ export default { save: "Save" }, nostr_contacts: { - title: "Nostr Contacts", + title: "Sync Nostr Contacts", npub_label: "Nostr npub", npub_required: "Npub can't be blank", - sync: "Sync" + sync: "Sync", + resync: "Resync", + remove: "Remove" }, manage_federations: { title: "Manage Federations", diff --git a/src/routes/settings/Root.tsx b/src/routes/settings/Root.tsx index d7e5e74c..327660b3 100644 --- a/src/routes/settings/Root.tsx +++ b/src/routes/settings/Root.tsx @@ -107,10 +107,10 @@ export function Settings() { }, { href: "/settings/encrypt", - text: "Change Password", + text: i18n.t("settings.encrypt.title"), disabled: !state.has_backed_up, caption: !state.has_backed_up - ? "Backup first to unlock encryption" + ? i18n.t("settings.encrypt.caption") : undefined }, { @@ -155,11 +155,13 @@ export function Settings() { }, { href: "/settings/syncnostrcontacts", - text: "Sync Nostr Contacts" + text: i18n.t("settings.nostr_contacts.title") }, { href: "/settings/federations", - text: "Manage Federations" + text: i18n.t( + "settings.manage_federations.title" + ) } ]} /> diff --git a/src/routes/settings/SyncNostrContacts.tsx b/src/routes/settings/SyncNostrContacts.tsx index fb938d62..b5234ba4 100644 --- a/src/routes/settings/SyncNostrContacts.tsx +++ b/src/routes/settings/SyncNostrContacts.tsx @@ -90,6 +90,7 @@ function SyncContactsForm() { } export function SyncNostrContacts() { + const i18n = useI18n(); const [state, actions] = useMegaStore(); const [loading, setLoading] = createSignal(false); const [error, setError] = createSignal(); @@ -114,7 +115,9 @@ export function SyncNostrContacts() { - Sync Nostr Contacts + + {i18n.t("settings.nostr_contacts.title")} + @@ -135,13 +138,17 @@ export function SyncNostrContacts() { onClick={resync} loading={loading()} > - Resync + {i18n.t( + "settings.nostr_contacts.resync" + )}