Fix translations on create account wizard

This commit is contained in:
Bojan Mojsilovic 2023-10-24 10:29:20 +02:00
parent 40f7f0759a
commit b415744936
2 changed files with 14 additions and 7 deletions

View File

@ -407,12 +407,10 @@ const CreateAccount: Component = () => { const intl = useIntl();
const onFollow = (pubkey: string) => {
setFollowed(followed.length, () => pubkey);
console.log('FOL: ', followed);
}
const onUnfollow = (pubkey: string) => {
const follows = followed.filter(f => f !== pubkey);
console.log('UNFOL: ', follows);
setFollowed(() => [...follows]);
}
@ -430,12 +428,12 @@ const CreateAccount: Component = () => { const intl = useIntl();
<Switch>
<Match when={currentStep() === 'name'}>
<div class={styles.stepIntro}>
Lets start with the basics. Only the username is required!
{intl.formatMessage(tAccount.create.descriptions.step_one)}
</div>
</Match>
<Match when={currentStep() === 'info'}>
<div class={styles.stepIntro}>
Tell us a bit more about yourself. Everything on this page is optional!
{intl.formatMessage(tAccount.create.descriptions.step_two)}
</div>
</Match>
</Switch>
@ -639,7 +637,7 @@ const CreateAccount: Component = () => { const intl = useIntl();
<div class={currentStep() === 'follow' ? '' : 'invisible'}>
<div class={styles.stepIntro}>
We found some Nostr accounts for you to follow:
{intl.formatMessage(tAccount.create.descriptions.step_three)}
</div>
<div class={styles.suggestions}>
<For each={suggestedData.groupNames}>

View File

@ -47,11 +47,20 @@ export const account = {
},
descriptions: {
step_one: {
id: 'settings.account.descriptions.step_on',
id: 'settings.account.descriptions.step_one',
defaultMessage: "Lets start with the basics. Only the username is required!",
description: 'Description on step one',
},
step_two: {
id: 'settings.account.descriptions.step_two',
defaultMessage: "Tell us a bit more about yourself. Everything on this page is optional!",
description: 'Description on step two',
},
step_three: {
id: 'settings.account.descriptions.step_three',
defaultMessage: "We found some Nostr accounts for you to follow:",
description: 'Description on step three',
},
}
},
};