Skip to content

Commit 0cb2a37

Browse files
committed
frontend: fix translations
1 parent 664fb2e commit 0cb2a37

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

frontend/src/locales/de.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,11 @@ export const de ={
176176
"create_token_failed": "Token konnte nicht erstellt werden. Bitte lade die Seite neu.",
177177
"delete_token_failed": "Token konnte nicht gelöscht werden. Bitte lade die Seite neu.",
178178
"info_heading": "Was Autorisierungstoken ermöglichen",
179-
"info_body": "Autorisierungstoken erlauben es Geräte hinzuzufügen, ohne dein Passwort zu teilen. Einmal-Token verfallen direkt nach der ersten Verwendung, wiederverwendbare Token bleiben aktiv, bis du sie löschst.",
179+
"info_body": "Autorisierungstoken erlauben es Geräte hinzuzufügen, ohne dein Passwort zu teilen. Einmal-Token verfallen direkt nach der ersten Verwendung, wiederverwendbare Token bleiben aktiv, bis du sie löschst. \n\n Alternativ kannst dich auch mit deiner E-Mail-Adresse und Passwort im Webinterface des Gerätes anmelden, um es mit deinem Konto zu verbinden.",
180180
"copy_success": "Erfolg",
181181
"copy_success_text": "Token in die Zwischenablage kopiert",
182182
"copy_failed": "Token konnte nicht kopiert werden",
183+
"add_device": "Gerät hinzufügen",
183184
"create_token": "Autorisierungstoken erstellen",
184185
"use_once": "Einmal verwendbar",
185186
"name": "Name",

frontend/src/locales/en.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,11 @@ export const en = {
176176
"create_token_failed": "Token could not be created. Please reload the page.",
177177
"delete_token_failed": "Token could not be deleted. Please reload the page.",
178178
"info_heading": "What authorization tokens do",
179-
"info_body": "Authorization tokens let you add devices without sharing your password. Single-use tokens expire right after their first use, while reusable tokens stay active until you delete them.",
179+
"info_body": "Authorization tokens let you add devices without sharing your password. Single-use tokens expire right after their first use, while reusable tokens stay active until you delete them. \n\n Alternatively, you can also log in to the device's web interface using your email address and password to connect it to your account.",
180180
"copy_success": "Success",
181181
"copy_success_text": "Token copied to clipboard",
182182
"copy_failed": "Token could not be copied",
183+
"add_device": "Add device",
183184
"create_token": "Create authorization token",
184185
"use_once": "Use once",
185186
"name": "Name",

frontend/src/pages/Devices.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ export class DeviceList extends Component<{}, DeviceListState> {
360360
className="mt-3"
361361
onClick={() => route("/tokens")}
362362
>
363-
{i18n.t("tokens.create_token")}
363+
{i18n.t("tokens.add_device")}
364364
</Button>
365365
</Container>
366366
);

frontend/src/pages/Tokens.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,6 @@ export function Tokens() {
231231
value={tokenName}
232232
onChange={(e) => setTokenName((e.target as HTMLInputElement).value)}
233233
/>
234-
<Form.Text className="text-muted small">
235-
{t("tokens.name_auto_generate")}
236-
</Form.Text>
237234
</Form.Group>
238235
<div className="d-flex align-items-center justify-content-between">
239236
<Form.Check

0 commit comments

Comments
 (0)