Open platform to collect and prioritize feedback
enhancement: translate missing labels
goenning6dee397ed271
diff --git a/locale/de/client.json b/locale/de/client.jsonindex d44e263ff..03cb99f96 100644--- a/locale/de/client.json+++ b/locale/de/client.json@@ -1,5 +1,6 @@{"action.cancel": "Abbrechen",+ "action.change": "","action.close": "Schließen","action.confirm": "Bestätigen","action.delete": "Löschen",@@ -40,12 +41,14 @@"label.custom": "Benutzerdefiniert","label.description": "Beschreibung","label.discussion": "Diskussion",+ "label.email": "","label.gravatar": "Gravatar","label.letter": "Buchstabe","label.moderation": "Moderieren","label.name": "Name","label.none": "Keine","label.notifications": "Benachrichtigungen",+ "label.or": "","label.subscribe": "Abonnieren","label.tags": "Tags","label.unread": "Ungelesen",@@ -68,8 +71,9 @@"modal.deleteaccount.text": "<0>Wenn Sie Ihr Konto löschen, werden wir all Ihre persönlichen Daten für immer löschen. Der von Ihnen veröffentlichte Inhalt bleibt erhalten, wird aber anonymisiert.</0><1>Dieser Prozess ist irreversibel. <2>Sind Sie sicher? </2></1>","modal.deletecomment.header": "Kommentar löschen","modal.deletecomment.text": "Dieser Prozess ist unumkehrbar. <0>Bist du dir sicher?</0>",- "modal.showvotes.message.zeromatches": "Keine Benutzer gefunden, die '{0} ' entsprechen.",+ "modal.showvotes.message.zeromatches": "","modal.showvotes.query.placeholder": "Suche nach Benutzern nach Namen...",+ "modal.signin.header": "","mynotifications.label.readrecently": "Lesen Sie, was in den letzten 30 Tagen geschrieben wurde.","mynotifications.message.nounread": "Keine ungelesenen Benachrichtigungen.","mynotifications.page.subtitle": "Bleibe immer auf dem Laufenden",@@ -122,10 +126,12 @@"showpost.votespanel.more": "+{extraVotesCount} mehr","showpost.votespanel.seedetails": "siehe Details","signin.message.email": "Gebe Deine E-Mail-Adresse ein, um Dich anzumelden",+ "signin.message.emaildisabled": "","signin.message.emailsent": "Wir haben soeben einen Bestätigungslink an <0>{email}</0> gesendet. Klicken Sie auf den Link und Sie werden angemeldet.","signin.message.locked.text": "Um diese Seite wieder zu aktivieren, melde Dich mit einem Administrator-Konto an und aktualisiere die erforderlichen Einstellungen.","signin.message.locked.title": "<0>{0}</0> ist derzeit gesperrt.",+ "signin.message.onlyadmins": "","signin.message.private.text": "Wenn Sie ein Konto oder eine Einladung haben, können Sie folgende Optionen nutzen, um sich anzumelden.","signin.message.private.title": "<0>{0}</0> ist ein privater Bereich und erfordert eine Einladung, um ihm beizutreten.","{count, plural, one {# tag} other {# tags}}": "{count, plural, one {# Tag} other {# Tags}}"-}\ No newline at end of file+}diff --git a/locale/en/client.json b/locale/en/client.jsonindex 6b91f9b7a..10a17fe0a 100644--- a/locale/en/client.json+++ b/locale/en/client.json@@ -1,5 +1,6 @@{"action.cancel": "Cancel",+ "action.change": "change","action.close": "Close","action.confirm": "Confirm","action.delete": "Delete",@@ -40,12 +41,14 @@"label.custom": "Custom","label.description": "Description","label.discussion": "Discussion",+ "label.email": "Email","label.gravatar": "Gravatar","label.letter": "Letter","label.moderation": "Moderation","label.name": "Name","label.none": "None","label.notifications": "Notifications",+ "label.or": "OR","label.subscribe": "Subscribe","label.tags": "Tags","label.unread": "Unread",@@ -68,8 +71,9 @@"modal.deleteaccount.text": "<0>When you choose to delete your account, we will erase all your personal information forever. The content you have published will remain, but it will be anonymised.</0><1>This process is irreversible. <2>Are you sure?</2></1>","modal.deletecomment.header": "Delete Comment","modal.deletecomment.text": "This process is irreversible. <0>Are you sure?</0>",- "modal.showvotes.message.zeromatches": "No users found matching '{0}'.",+ "modal.showvotes.message.zeromatches": "No users found matching <0>{0}</0>.","modal.showvotes.query.placeholder": "Search for users by name...",+ "modal.signin.header": "Sign in to post and vote","mynotifications.label.readrecently": "Read on last 30 days.","mynotifications.message.nounread": "No unread notifications.","mynotifications.page.subtitle": "Stay up to date with what's happening",diff --git a/locale/fr/client.json b/locale/fr/client.jsonindex 89ea81608..05409194a 100644--- a/locale/fr/client.json+++ b/locale/fr/client.json@@ -1,5 +1,6 @@{"action.cancel": "Annuler",+ "action.change": "","action.close": "Fermer","action.confirm": "Confirmer","action.delete": "Supprimer",@@ -40,12 +41,14 @@"label.custom": "Personnalisé","label.description": "Description","label.discussion": "Discussion",+ "label.email": "","label.gravatar": "Gravatar","label.letter": "Lettre","label.moderation": "Modération","label.name": "Nom","label.none": "Aucun","label.notifications": "Notifications",+ "label.or": "","label.subscribe": "S'abonner","label.tags": "Tags","label.unread": "Non lu",@@ -68,8 +71,9 @@"modal.deleteaccount.text": "<0>Lorsque vous choisissez de supprimer votre compte, nous effacerons définitivement toutes vos informations personnelles. Le contenu que vous avez publié restera, mais il sera anonyme.</0><1>Ce processus est irréversible. <2>Êtes-vous sûr ?</2></1>","modal.deletecomment.header": "Supprimer le commentaire","modal.deletecomment.text": "Ce processus est irréversible. <0>Êtes-vous sûr ?</0>",- "modal.showvotes.message.zeromatches": "Aucun utilisateur correspondant à '{0}'.",+ "modal.showvotes.message.zeromatches": "","modal.showvotes.query.placeholder": "Rechercher des utilisateurs par nom...",+ "modal.signin.header": "","mynotifications.label.readrecently": "Lu sur les 30 dernier jours.","mynotifications.message.nounread": "Pas de notification non lue.","mynotifications.page.subtitle": "Restez au courant de ce qui se passe",@@ -122,10 +126,12 @@"showpost.votespanel.more": "+{extraVotesCount} de plus","showpost.votespanel.seedetails": "voir les détails","signin.message.email": "Entrez votre adresse e-mail pour vous connecter",+ "signin.message.emaildisabled": "","signin.message.emailsent": "Nous venons d'envoyer un lien de confirmation à <0>{email}</0>. Cliquez sur le lien et vous serez connecté.","signin.message.locked.text": "Pour réactiver ce site, connectez-vous avec un compte administrateur et mettez à jour les paramètres requis.","signin.message.locked.title": "<0>{0}</0> est actuellement verrouillé.",+ "signin.message.onlyadmins": "","signin.message.private.text": "Si vous avez un compte ou une invitation, vous pouvez utiliser les options suivantes pour vous connecter.","signin.message.private.title": "<0>{0}</0> est un espace privé et nécessite une invitation pour le rejoindre.","{count, plural, one {# tag} other {# tags}}": "{count, plural, one {# tag} other {# tags}}"-}\ No newline at end of file+}diff --git a/locale/locales.ts b/locale/locales.tsindex 678fb56d1..1d93fb27a 100644--- a/locale/locales.ts+++ b/locale/locales.ts@@ -10,15 +10,15 @@ const locales: { [key: string]: Locale } = {},"pt-BR": {text: "🇧🇷 Portuguese (Brazilian)",- translated: 100,+ translated: 98,},de: {text: "🇩🇪 German",- translated: 100,+ translated: 98,},fr: {text: "🇫🇷 French",- translated: 100,+ translated: 98,},}diff --git a/locale/pt-BR/client.json b/locale/pt-BR/client.jsonindex 990a003c3..ec3d5bd3f 100644--- a/locale/pt-BR/client.json+++ b/locale/pt-BR/client.json@@ -1,5 +1,6 @@{"action.cancel": "Cancelar",+ "action.change": "","action.close": "Fechar","action.confirm": "Confirmar","action.delete": "Deletar",@@ -40,12 +41,14 @@"label.custom": "Personalizado","label.description": "Descrição","label.discussion": "Discussão",+ "label.email": "","label.gravatar": "Gravatar","label.letter": "Letra","label.moderation": "Moderação","label.name": "Nome","label.none": "Nenhum","label.notifications": "Notificações",+ "label.or": "","label.subscribe": "Inscrever-se","label.tags": "Tags","label.unread": "Não lidas",@@ -68,8 +71,9 @@"modal.deleteaccount.text": "<0>Quando você optar por excluir sua conta, todas as suas informações pessoais serão removidas para sempre. O conteúdo que você publicou permanecerá, mas será anonimizado.</0><1>Esse processo é irreversível. <2>Você tem certeza?</2></1>","modal.deletecomment.header": "Excluir comentário","modal.deletecomment.text": "Este processo é irreversível. <0>Tem certeza?</0>",- "modal.showvotes.message.zeromatches": "Nenhum usuário encontrado para '{0}'.",+ "modal.showvotes.message.zeromatches": "","modal.showvotes.query.placeholder": "Procurar usuários por nome...",+ "modal.signin.header": "","mynotifications.label.readrecently": "Lido nos últimos 30 dias.","mynotifications.message.nounread": "Nenhuma notificação não lida.","mynotifications.page.subtitle": "Mantenha-se atualizado com o que está acontecendo",@@ -122,10 +126,12 @@"showpost.votespanel.more": "+{extraVotesCount} mais","showpost.votespanel.seedetails": "ver detalhes","signin.message.email": "Digite seu endereço de e-mail para fazer login",+ "signin.message.emaildisabled": "","signin.message.emailsent": "Acabamos de enviar um link de confirmação para <0>{email}</0>. Clique no link para iniciar a sessão.","signin.message.locked.text": "Para reativar este site, entre com uma conta de administrador e atualize as configurações necessárias.","signin.message.locked.title": "<0>{0}</0> está bloqueado no momento.",+ "signin.message.onlyadmins": "","signin.message.private.text": "Se você tem uma conta ou um convite, você pode usar as seguintes opções para fazer o login.","signin.message.private.title": "<0>{0}</0> é um espaço privado e requer um convite para se juntar a ele.","{count, plural, one {# tag} other {# tags}}": "{count, plural, one {# tag} other {# tags}}"-}\ No newline at end of file+}diff --git a/public/components/SignInModal.tsx b/public/components/SignInModal.tsxindex a0498adf1..2db28b6ca 100644--- a/public/components/SignInModal.tsx+++ b/public/components/SignInModal.tsx@@ -35,7 +35,7 @@ export const SignInModal: React.StatelessComponent<SignInModalProps> = (props) =</p><p><Button variant="tertiary" onClick={closeModal}>- OK+ <Trans id="action.ok">OK</Trans></Button></p></>@@ -45,7 +45,9 @@ export const SignInModal: React.StatelessComponent<SignInModalProps> = (props) =return (<Modal.Window isOpen={props.isOpen} onClose={closeModal}>- <Modal.Header>Sign in to post and vote</Modal.Header>+ <Modal.Header>+ <Trans id="modal.signin.header">Sign in to post and vote</Trans>+ </Modal.Header><Modal.Content>{content}</Modal.Content><LegalFooter /></Modal.Window>diff --git a/public/components/layout/Divider.tsx b/public/components/layout/Divider.tsxindex a207800fc..d7d0d8d44 100644--- a/public/components/layout/Divider.tsx+++ b/public/components/layout/Divider.tsx@@ -1,7 +1,12 @@import "./Divider.scss"import React from "react"+import { Trans } from "@lingui/macro"export const Divider = () => {- return <div className="c-divider text-gray-600">OR</div>+ return (+ <div className="c-divider text-gray-600">+ <Trans id="label.or">OR</Trans>+ </div>+ )}diff --git a/public/pages/MySettings/MySettings.page.tsx b/public/pages/MySettings/MySettings.page.tsxindex 1b22ac9a5..ba95e0768 100644--- a/public/pages/MySettings/MySettings.page.tsx+++ b/public/pages/MySettings/MySettings.page.tsx@@ -105,7 +105,7 @@ export default class MySettingsPage extends React.Component<MySettingsPageProps,public render() {const changeEmail = (<Button variant="tertiary" size="small" onClick={this.startChangeEmail}>- change+ <Trans id="action.change">change</Trans></Button>)@@ -139,7 +139,7 @@ export default class MySettingsPage extends React.Component<MySettingsPageProps,<div className="w-max-7xl"><Form error={this.state.error}><Input- label="Email"+ label={t({ id: "label.email", message: "Email" })}field="email"value={this.state.changingEmail ? this.state.newEmail : Fider.session.user.email}maxLength={200}diff --git a/public/pages/ShowPost/components/VotesModal.tsx b/public/pages/ShowPost/components/VotesModal.tsxindex 395816469..16403baaa 100644--- a/public/pages/ShowPost/components/VotesModal.tsx+++ b/public/pages/ShowPost/components/VotesModal.tsx@@ -94,7 +94,9 @@ export class VotesModal extends React.Component<VotesModalProps, VotesModalState))}{this.state.filteredVotes.length === 0 && (<p className="text-muted">- <Trans id="modal.showvotes.message.zeromatches">No users found matching '{this.state.query}'.</Trans>+ <Trans id="modal.showvotes.message.zeromatches">+ No users found matching <strong>{this.state.query}</strong>.+ </Trans></p>)}</VStack>diff --git a/public/services/i18n.ts b/public/services/i18n.tsindex fd727ce29..e6eacf55e 100644--- a/public/services/i18n.ts+++ b/public/services/i18n.ts@@ -2,7 +2,6 @@ import { i18n, I18n } from "@lingui/core"import { en, pt, fr, de } from "make-plural/plurals"export function activateI18NSync(locale: string, messages?: any): I18n {- i18n._missing = (_, key) => `⚠️ Missing Translation: ${key}`i18n.loadLocaleData("en", { plurals: en })i18n.loadLocaleData("pt-BR", { plurals: pt })i18n.loadLocaleData("de", { plurals: de })