diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index 41d36d2f4..468e57015 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -2,7 +2,7 @@ name: 'Alpha Build' on: push: - branches: [v4160/i18n] + branches: [v4160/german] jobs: build: diff --git a/frontend/src/components/HowDoesItWorkButton.tsx b/frontend/src/components/HowDoesItWorkButton.tsx index a700f27f3..a144d42a4 100644 --- a/frontend/src/components/HowDoesItWorkButton.tsx +++ b/frontend/src/components/HowDoesItWorkButton.tsx @@ -2,6 +2,7 @@ import { colors } from '@mui/material'; import { Info } from '@mui/icons-material'; import { useNavigate } from 'react-router'; import styled from '@emotion/styled'; +import { useTranslation } from 'react-i18next'; interface HowDoesItWorkButtonProps { children: React.ReactElement; @@ -13,13 +14,16 @@ export default function HowDoesItWorkButton({ url, }: HowDoesItWorkButtonProps) { const navigate = useNavigate(); + const { t } = useTranslation(); return ( {children} - navigate(url)}>How does that work? + navigate(url)}> + {t('Home.howDoesThatWork')} + ); diff --git a/frontend/src/translations/locales/ar-SA.json b/frontend/src/translations/locales/ar-SA.json index eef728766..7885720be 100644 --- a/frontend/src/translations/locales/ar-SA.json +++ b/frontend/src/translations/locales/ar-SA.json @@ -19,7 +19,8 @@ } }, "Home": { - "welcome": "مرحبا، {{name}}" + "welcome": "مرحبا، {{name}}", + "howDoesThatWork": "كيف يعمل ذلك؟" }, "PreviousGame": { "createdBy": "تم إنشاؤها بواسطة", diff --git a/frontend/src/translations/locales/de-DE.json b/frontend/src/translations/locales/de-DE.json index c1a6a2266..e0be5eeac 100644 --- a/frontend/src/translations/locales/de-DE.json +++ b/frontend/src/translations/locales/de-DE.json @@ -19,18 +19,19 @@ } }, "Home": { - "welcome": "Willkommen, {{name}}" + "welcome": "Willkommen, {{name}}", + "howDoesThatWork": "Wie funktioniert das?" }, "PreviousGame": { "createdBy": "Erstellt von", - "posts_one": "eintragen", - "posts_other": "posten", - "participants_one": "teilnehmer", - "participants_other": "teilnehmer", - "votes_one": "abstimmen", - "votes_other": "stimmen", - "actions_one": "aktion", - "actions_other": "aktionen" + "posts_one": "Beitrag", + "posts_other": "Beiträge", + "participants_one": "Teilnehmer", + "participants_other": "Teilnehmer", + "votes_one": "Abstimmen", + "votes_other": "Stimmen", + "actions_one": "Aktion", + "actions_other": "Aktionen" }, "Column": { "createGroupTooltip": "Erstelle eine Gruppe um Beiträge zusammen zu gruppieren" @@ -61,7 +62,7 @@ "votingCategory": "Abstimmung", "votingCategorySub": "Setze die Abstimmregeln", "postCategory": "Beitragseinstellungen", - "postCategorySub": "Stelle ein, wie Nutzer mit Beitragen interagieren können", + "postCategorySub": "Stelle ein, wie Nutzer mit Beiträgen interagieren können", "customTemplateCategory": "Spaltenkonfiguration", "customTemplateCategorySub": "Setze die Anzahl an Spalten und deren Eigenschaften", "startButton": "Spiel starten!", @@ -78,18 +79,18 @@ "allowMultipleVotesHelp": "Soll es Nutzern möglich sein mehrfach zu bewerten?", "allowActions": "Erlaube Maßnahmen", "allowActionsHelp": "Bestimmt ob Maßnahmen hinzugefügt werden können", - "allowAuthorVisible": "Zeige Author", - "allowAuthorVisibleHelp": "Zeigt den Author eines Posts an.", + "allowAuthorVisible": "Zeige Autor", + "allowAuthorVisibleHelp": "Zeigt den Autor eines Posts an.", "newPostsFirst": "Neue Beiträge zuerst hinzufügen", "newPostsFirstHelp": "Neue Beiträge werden oben in der Spalte hinzugefügt", "allowGiphy": "Giphy erlauben", - "allowGiphyHelp": "Benutzern erlauben, ein Giphy-Bild gegen einen Beitrag zu setzen", + "allowGiphyHelp": "Benutzern erlauben, ein Giphy-Bild statt einen Beitrag zu setzen", "allowGrouping": "Gruppieren erlauben", "allowGroupingHelp": "Erstelle Gruppen, um Beiträge zusammenzufassen", - "allowReordering": "Nachbestellung erlauben", - "allowReorderingHelp": "Erlaubt die Nachbestellung von Posts per Drag-and-Drop", - "blurCards": "Unschärfe Karten", - "blurCardsHelp": "Karteninhalte werden verschwommen, bis der Moderator den Inhalt aufdeckt", + "allowReordering": "Neu sortieren erlauben", + "allowReorderingHelp": "Erlaubt die Beiträge per Drag-and-Drop neu zu sortieren", + "blurCards": "Unscharfe Karten", + "blurCardsHelp": "Karteninhalte werden verschwommen dargestellt, bis der Moderator den Inhalt aufdeckt", "template": "Vorlage", "templateHelp": "Nutze ein vordefiniertes Spaltenset", "numberOfColumns": "Anzahl an Spalten", @@ -134,8 +135,8 @@ "userIsReady": "{{user}} ist bereit!" }, "GameMenu": { - "board": "Brett", - "summary": "Summary" + "board": "Board", + "summary": "Zusammenfassung" }, "Template": { "default": "Standard", diff --git a/frontend/src/translations/locales/en-GB.json b/frontend/src/translations/locales/en-GB.json index 18e2c2b34..5c7c15aa4 100644 --- a/frontend/src/translations/locales/en-GB.json +++ b/frontend/src/translations/locales/en-GB.json @@ -19,7 +19,8 @@ } }, "Home": { - "welcome": "Welcome, {{name}}" + "welcome": "Welcome, {{name}}", + "howDoesThatWork": "How does that work?" }, "PreviousGame": { "createdBy": "Created by", diff --git a/frontend/src/translations/locales/es-ES.json b/frontend/src/translations/locales/es-ES.json index 2672b06ba..0a7c36ac8 100644 --- a/frontend/src/translations/locales/es-ES.json +++ b/frontend/src/translations/locales/es-ES.json @@ -19,7 +19,8 @@ } }, "Home": { - "welcome": "Bienvenido, {{name}}" + "welcome": "Bienvenido, {{name}}", + "howDoesThatWork": "¿Cómo funciona esto?" }, "PreviousGame": { "createdBy": "Creado por", @@ -266,7 +267,7 @@ "cancelButton": "No gracias" }, "AccountPage": { - "noEmptyNameError": "You cannot choose an empty display name. Please try again.", + "noEmptyNameError": "No puedes elegir un nombre vacío. Por favor, inténtalo de nuevo.", "anonymousError": "Las cuentas anónimas no pueden tener acceso a su perfil (porque no tienen una).", "details": { "header": "Tus detalles", diff --git a/frontend/src/translations/locales/fr-FR.json b/frontend/src/translations/locales/fr-FR.json index c6a76e25b..e2fdd5fd4 100644 --- a/frontend/src/translations/locales/fr-FR.json +++ b/frontend/src/translations/locales/fr-FR.json @@ -19,7 +19,8 @@ } }, "Home": { - "welcome": "Bienvenue, {{name}}" + "welcome": "Bienvenue, {{name}}", + "howDoesThatWork": "Comment cela fonctionne-t-il?" }, "PreviousGame": { "createdBy": "Créé par", diff --git a/frontend/src/translations/locales/hu-HU.json b/frontend/src/translations/locales/hu-HU.json index 08e3ca101..659c630ca 100644 --- a/frontend/src/translations/locales/hu-HU.json +++ b/frontend/src/translations/locales/hu-HU.json @@ -19,7 +19,8 @@ } }, "Home": { - "welcome": "Isten hozott, {{name}}" + "welcome": "Isten hozott, {{name}}", + "howDoesThatWork": "Hogyan működik?" }, "PreviousGame": { "createdBy": "Készítette", @@ -266,7 +267,7 @@ "cancelButton": "Nem köszönöm" }, "AccountPage": { - "noEmptyNameError": "You cannot choose an empty display name. Please try again.", + "noEmptyNameError": "Nem választhat üres megjelenített nevet. Kérlek próbáld újra.", "anonymousError": "Az anonim fiókok nem férhetnek hozzá a profiljukhoz (mert nincs ilyenük).", "details": { "header": "Az adataid", diff --git a/frontend/src/translations/locales/it-IT.json b/frontend/src/translations/locales/it-IT.json index b77ef4bf0..168096b6e 100644 --- a/frontend/src/translations/locales/it-IT.json +++ b/frontend/src/translations/locales/it-IT.json @@ -19,7 +19,8 @@ } }, "Home": { - "welcome": "Benvenuto, {{name}}" + "welcome": "Benvenuto, {{name}}", + "howDoesThatWork": "Come funziona quello?" }, "PreviousGame": { "createdBy": "Creato da", diff --git a/frontend/src/translations/locales/ja-JP.json b/frontend/src/translations/locales/ja-JP.json index 0dea814ba..de178519b 100644 --- a/frontend/src/translations/locales/ja-JP.json +++ b/frontend/src/translations/locales/ja-JP.json @@ -19,7 +19,8 @@ } }, "Home": { - "welcome": "ようこそ、 {{name}}" + "welcome": "ようこそ、 {{name}}", + "howDoesThatWork": "それはどのように機能しますか?" }, "PreviousGame": { "createdBy": "作成者:", diff --git a/frontend/src/translations/locales/nl-NL.json b/frontend/src/translations/locales/nl-NL.json index bd94aa814..5fd5d35c6 100644 --- a/frontend/src/translations/locales/nl-NL.json +++ b/frontend/src/translations/locales/nl-NL.json @@ -19,7 +19,8 @@ } }, "Home": { - "welcome": "Welkom, {{name}}" + "welcome": "Welkom, {{name}}", + "howDoesThatWork": "Hoe werkt dat?" }, "PreviousGame": { "createdBy": "Aangemaakt door", diff --git a/frontend/src/translations/locales/pl-PL.json b/frontend/src/translations/locales/pl-PL.json index 872cc0841..72a047745 100644 --- a/frontend/src/translations/locales/pl-PL.json +++ b/frontend/src/translations/locales/pl-PL.json @@ -19,7 +19,8 @@ } }, "Home": { - "welcome": "Witaj, {{name}}" + "welcome": "Witaj, {{name}}", + "howDoesThatWork": "Jak to działa?" }, "PreviousGame": { "createdBy": "Utworzony przez", @@ -266,7 +267,7 @@ "cancelButton": "Nie, dziękuję" }, "AccountPage": { - "noEmptyNameError": "You cannot choose an empty display name. Please try again.", + "noEmptyNameError": "Nie można wybrać pustej nazwy wyświetlacza. Spróbuj ponownie.", "anonymousError": "Anonimowe konta nie mogą mieć dostępu do swojego profilu (ponieważ nie mają nich).", "details": { "header": "Twoje dane", diff --git a/frontend/src/translations/locales/pt-BR.json b/frontend/src/translations/locales/pt-BR.json index 067d354ba..c82a0c85a 100644 --- a/frontend/src/translations/locales/pt-BR.json +++ b/frontend/src/translations/locales/pt-BR.json @@ -19,7 +19,8 @@ } }, "Home": { - "welcome": "Bem-vindo, {{name}}" + "welcome": "Bem-vindo, {{name}}", + "howDoesThatWork": "Como funciona isso?" }, "PreviousGame": { "createdBy": "Criado Por", @@ -266,7 +267,7 @@ "cancelButton": "Não, obrigado." }, "AccountPage": { - "noEmptyNameError": "You cannot choose an empty display name. Please try again.", + "noEmptyNameError": "Você não pode escolher um nome de exibição vazio. Por favor, tente novamente.", "anonymousError": "Contas anônimas não podem ter acesso ao seu perfil (porque não têm uma).", "details": { "header": "Suas informações", diff --git a/frontend/src/translations/locales/pt-PT.json b/frontend/src/translations/locales/pt-PT.json index 63b047eb5..5fc306a14 100644 --- a/frontend/src/translations/locales/pt-PT.json +++ b/frontend/src/translations/locales/pt-PT.json @@ -19,7 +19,8 @@ } }, "Home": { - "welcome": "Bem-vindo, {{name}}" + "welcome": "Bem-vindo, {{name}}", + "howDoesThatWork": "Como funciona isso?" }, "PreviousGame": { "createdBy": "Criado Por", @@ -266,7 +267,7 @@ "cancelButton": "Não, obrigado." }, "AccountPage": { - "noEmptyNameError": "You cannot choose an empty display name. Please try again.", + "noEmptyNameError": "Você não pode escolher um nome de exibição vazio. Por favor, tente novamente.", "anonymousError": "Contas anônimas não podem ter acesso ao seu perfil (porque não têm uma).", "details": { "header": "Suas informações", diff --git a/frontend/src/translations/locales/uk-UA.json b/frontend/src/translations/locales/uk-UA.json index c7cfadcbe..b34fd405b 100644 --- a/frontend/src/translations/locales/uk-UA.json +++ b/frontend/src/translations/locales/uk-UA.json @@ -19,7 +19,8 @@ } }, "Home": { - "welcome": "Ласкаво просимо, {{name}}" + "welcome": "Ласкаво просимо, {{name}}", + "howDoesThatWork": "Як це працює?" }, "PreviousGame": { "createdBy": "Створено", diff --git a/frontend/src/translations/locales/zh-CN.json b/frontend/src/translations/locales/zh-CN.json index 575ac94bd..2c7142ba6 100644 --- a/frontend/src/translations/locales/zh-CN.json +++ b/frontend/src/translations/locales/zh-CN.json @@ -19,7 +19,8 @@ } }, "Home": { - "welcome": "欢迎, {{name}}" + "welcome": "欢迎, {{name}}", + "howDoesThatWork": "这是如何运作的?" }, "PreviousGame": { "createdBy": "创建者", @@ -266,7 +267,7 @@ "cancelButton": "不要谢谢。" }, "AccountPage": { - "noEmptyNameError": "You cannot choose an empty display name. Please try again.", + "noEmptyNameError": "您不能选择一个空的显示名称。请重试。", "anonymousError": "匿名帐户不能访问他们的个人资料 (因为他们没有一个)。", "details": { "header": "您的详细信息", diff --git a/frontend/src/translations/locales/zh-TW.json b/frontend/src/translations/locales/zh-TW.json index 0b3409d47..e9fbb8ec1 100644 --- a/frontend/src/translations/locales/zh-TW.json +++ b/frontend/src/translations/locales/zh-TW.json @@ -19,7 +19,8 @@ } }, "Home": { - "welcome": "歡迎, {{name}}" + "welcome": "歡迎, {{name}}", + "howDoesThatWork": "這是如何運作的?" }, "PreviousGame": { "createdBy": "由...製作", @@ -266,7 +267,7 @@ "cancelButton": "不,謝謝" }, "AccountPage": { - "noEmptyNameError": "You cannot choose an empty display name. Please try again.", + "noEmptyNameError": "您不能選擇空的顯示名稱。請再試一次。", "anonymousError": "匿名帳戶無法訪問他們的個人資料(因為他們沒有個人資料)。", "details": { "header": "你的資料",