Skip to content

Commit

Permalink
draft: add new and improve existing locales
Browse files Browse the repository at this point in the history
  • Loading branch information
andirueckel committed Sep 5, 2023
1 parent b251bc5 commit 6725611
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions pages/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default function Account() {

// If the request was successful, a confirmation email will be sent to the user.
setInputNewEmail('');
setFeedbackMessage(t('We have sent an email to the provided address. Please click the link in it in order to verify that you really own the given address.'));
setFeedbackMessage(t('We have sent a confirmation email to the provided address.'));
}
};

Expand Down Expand Up @@ -200,7 +200,7 @@ export default function Account() {
return (
<>
<h2>/account</h2>
<p>{ t('Please enter your account password to confirm adding the given email address to your account:') }</p>
<p>{ t('Please enter your account password to confirm adding the given email address:') }</p>
<br />
<form onSubmit={(event) => { event.preventDefault(); confirmNewEmail(); }}>
<input type="password" placeholder={t('password')} onChange={(event) => { setInputPassword(event.target.value);}} />
Expand Down
15 changes: 10 additions & 5 deletions public/locales/de/_defaults.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"Password": "Passwort",
"Select action": "Aktion wählen",
"What would you like to do?": "Was möchtest Du tun?",
"{{error}}, please wait {{time}} seconds.": "{{error}}, bitte warte {{time}} sekunden."
}
"Cancel": "Abbrechen",
"Confirm": "Bestätigen",
"Delete": "Löschen",
"Password": "Passwort",
"Upload": "Hochladen",
"Save changes": "Änderungen speichern",
"Select action": "Aktion wählen",
"What would you like to do?": "Was möchtest Du tun?",
"{{error}}, please wait {{time}} seconds.": "{{error}}, bitte warte {{time}} Sekunden."
}
9 changes: 4 additions & 5 deletions public/locales/de/account.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"Upload": "Hochladen",
"Delete": "Löschen",
"add your email address": "e-mail adresse hinzufügen",
"add another email address": "weitere e-mail adressen hinzufügen",
"Save changes": "Änderungen speichern"
"We have sent a confirmation email to the provided address.": "Wir haben eine Bestätigungs-E-Mail an eingegebene Adresse gesendet.",
"Please enter your account password to confirm adding the given email address:": "Bitte bestätige das Hinzufügen der eingegebenen E-Mail-Adresse mit deinem Passwort:",
"add another email address": "weitere E-Mail-Adressen hinzufügen",
"add your email address": "E-Mail-Adresse hinzufügen"
}

0 comments on commit 6725611

Please sign in to comment.