Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(i18n): prevent removal of dynamically generated translation keys #2154

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions i18next-parser.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
module.exports = {
createOldCatalogs: false,
input: ['./src/**/*.{tsx,ts}'],
keepRemoved: true,
keySeparator: false,
locales: ['de', 'en', 'es', 'fr', 'hi', 'it', 'ja', 'ko', 'nl', 'pt', 'ru', 'tr'],
namespaceSeparator: false,
Expand Down
30 changes: 15 additions & 15 deletions src/i18n/de.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"Attach files": "Dateien anhängen",
"ban-command-args": "[@Benutzername] [Text]",
"ban-command-description": "Einen Benutzer verbannen",
"ban-command-name": "Verbannen",
"Cancel": "Stornieren",
"Channel Missing": "Kanal fehlt",
"Close": "Schließen",
Expand All @@ -28,9 +25,6 @@
"Error · Unsent": "Fehler nicht gesendet",
"Error: {{ errorMessage }}": "Fehler: {{ errorMessage }}",
"Flag": "Meldung",
"giphy-command-args": "[Text]",
"giphy-command-description": "Poste ein zufälliges Gif in den Kanal",
"giphy-command-name": "Giphy",
"Latest Messages": "Neueste Nachrichten",
"Menu": "Menü",
"Message Failed · Click to try again": "Nachricht fehlgeschlagen · Klicken, um es erneut zu versuchen",
Expand All @@ -39,9 +33,6 @@
"Message has been successfully flagged": "Nachricht wurde erfolgreich gemeldet",
"Message pinned": "Nachricht gepinnt",
"Mute": "Stumm schalten",
"mute-command-args": "[@Benutzername]",
"mute-command-description": "Stummschalten eines Benutzers",
"mute-command-name": "Stumm schalten",
"New": "Neu",
"New Messages!": "Neue Nachrichten!",
"No chats here yet…": "Noch keine Chats hier...",
Expand All @@ -64,24 +55,33 @@
"This message was deleted...": "Diese Nachricht wurde gelöscht...",
"Thread": "Thread",
"Type your message": "Nachricht eingeben",
"unban-command-args": "[@Benutzername]",
"unban-command-description": "Einen Benutzer entbannen",
"unban-command-name": "Entbannen",
"Unmute": "Stummschaltung aufheben",
"unmute-command-args": "[@Benutzername]",
"unmute-command-description": "Stummschaltung eines Benutzers aufheben",
"unmute-command-name": "Stummschaltung aufheben",
"Unpin": "Pin entfernen",
"Upload type: \"{{ type }}\" is not allowed": "Upload-Typ: \"{{ type }}\" ist nicht erlaubt",
"Wait until all attachments have uploaded": "Bitte warten, bis alle Anhänge hochgeladen wurden",
"You have no channels currently": "Du hast momentan noch keinen Channels",
"You've reached the maximum number of files": "Die maximale Dateianzahl ist erreicht",
"ban-command-args": "[@Benutzername] [Text]",
"ban-command-description": "Einen Benutzer verbannen",
"ban-command-name": "Verbannen",
"giphy-command-args": "[Text]",
"giphy-command-description": "Poste ein zufälliges Gif in den Kanal",
"giphy-command-name": "Giphy",
"live": "live",
"mute-command-args": "[@Benutzername]",
"mute-command-description": "Stummschalten eines Benutzers",
"mute-command-name": "Stumm schalten",
"replyCount_one": "1 Antwort",
"replyCount_other": "{{ count }} Antworten",
"searchResultsCount_one": "1 Ergebnis",
"searchResultsCount_other": "{{ count }} Ergebnisse",
"this content could not be displayed": "Dieser Inhalt konnte nicht angezeigt werden",
"unban-command-args": "[@Benutzername]",
"unban-command-description": "Einen Benutzer entbannen",
"unban-command-name": "Entbannen",
"unmute-command-args": "[@Benutzername]",
"unmute-command-description": "Stummschaltung eines Benutzers aufheben",
"unmute-command-name": "Stummschaltung aufheben",
"{{ commaSeparatedUsers }} and {{ moreCount }} more": "{{ commaSeparatedUsers }} und {{moreCount}} Mehr",
"{{ commaSeparatedUsers }}, and {{ lastUser }}": "{{ commaSeparatedUsers }} und {{ lastUser }}",
"{{ firstUser }} and {{ secondUser }}": "{{ firstUser }} und {{ secondUser }}",
Expand Down
30 changes: 15 additions & 15 deletions src/i18n/es.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"Attach files": "Adjuntar archivos",
"ban-command-args": "[@usuario] [texto]",
"ban-command-description": "Prohibir a un usuario",
"ban-command-name": "prohibir",
"Cancel": "Cancelar",
"Channel Missing": "Falta canal",
"Close": "Cerca",
Expand All @@ -28,9 +25,6 @@
"Error · Unsent": "Error · No enviado",
"Error: {{ errorMessage }}": "Error: {{ errorMessage }}",
"Flag": "Bandera",
"giphy-command-args": "[texto]",
"giphy-command-description": "Publicar un gif aleatorio en el canal",
"giphy-command-name": "giphy",
"Latest Messages": "Últimos mensajes",
"Menu": "Menú",
"Message Failed · Click to try again": "Mensaje fallido · Haga clic para volver a intentarlo",
Expand All @@ -39,9 +33,6 @@
"Message has been successfully flagged": "El mensaje se marcó correctamente",
"Message pinned": "Mensaje fijado",
"Mute": "Mudo",
"mute-command-args": "[@usuario]",
"mute-command-description": "Silenciar a un usuario",
"mute-command-name": "silenciar",
"New": "Nuevo",
"New Messages!": "¡Nuevos mensajes!",
"No chats here yet…": "Aún no hay mensajes aquí...",
Expand All @@ -64,26 +55,35 @@
"This message was deleted...": "Este mensaje fue eliminado ...",
"Thread": "Hilo",
"Type your message": "Escribe tu mensaje",
"unban-command-args": "[@usuario]",
"unban-command-description": "Quitar la prohibición a un usuario",
"unban-command-name": "quitar la prohibición",
"Unmute": "Activar sonido",
"unmute-command-args": "[@usuario]",
"unmute-command-description": "Anular el silencio de un usuario",
"unmute-command-name": "quitar el silencio",
"Unpin": "Desprender",
"Upload type: \"{{ type }}\" is not allowed": "Tipo de carga: \"{{ type }}\" no está permitido",
"Wait until all attachments have uploaded": "Espere hasta que se hayan cargado todos los archivos adjuntos",
"You have no channels currently": "Actualmente no tienes canales",
"You've reached the maximum number of files": "Has alcanzado el número máximo de archivos",
"ban-command-args": "[@usuario] [texto]",
"ban-command-description": "Prohibir a un usuario",
"ban-command-name": "prohibir",
"giphy-command-args": "[texto]",
"giphy-command-description": "Publicar un gif aleatorio en el canal",
"giphy-command-name": "giphy",
"live": "En Vivo",
"mute-command-args": "[@usuario]",
"mute-command-description": "Silenciar a un usuario",
"mute-command-name": "silenciar",
"replyCount_many": "{{ count }} respuestas",
"replyCount_one": "1 respuesta",
"replyCount_other": "{{ count }} respuestas",
"searchResultsCount_many": "{{ count }} resultados",
"searchResultsCount_one": "1 resultado",
"searchResultsCount_other": "{{ count }} resultados",
"this content could not be displayed": "este contenido no se pudo mostrar",
"unban-command-args": "[@usuario]",
"unban-command-description": "Quitar la prohibición a un usuario",
"unban-command-name": "quitar la prohibición",
"unmute-command-args": "[@usuario]",
"unmute-command-description": "Anular el silencio de un usuario",
"unmute-command-name": "quitar el silencio",
"{{ commaSeparatedUsers }} and {{ moreCount }} more": "{{ commaSeparatedUsers }} y {{ moreCount }} más",
"{{ commaSeparatedUsers }}, and {{ lastUser }}": "{{ commaSeparatedUsers }} y {{ lastUser }}",
"{{ firstUser }} and {{ secondUser }}": "{{ firstUser }} y {{ secondUser }}",
Expand Down
30 changes: 15 additions & 15 deletions src/i18n/fr.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"Attach files": "Pièces jointes",
"ban-command-args": "[@nomdutilisateur] [texte]",
"ban-command-description": "Bannir un utilisateur",
"ban-command-name": "bannir",
"Cancel": "Annuler",
"Channel Missing": "Canal Manquant",
"Close": "Fermer",
Expand All @@ -28,9 +25,6 @@
"Error · Unsent": "Erreur - Non envoyé",
"Error: {{ errorMessage }}": "Erreur : {{ errorMessage }}",
"Flag": "Signaler",
"giphy-command-args": "[texte]",
"giphy-command-description": "Poster un GIF aléatoire dans le canal",
"giphy-command-name": "giphy",
"Latest Messages": "Derniers messages",
"Menu": "Menu",
"Message Failed · Click to try again": "Échec de l'envoi du message - Cliquez pour réessayer",
Expand All @@ -39,9 +33,6 @@
"Message has been successfully flagged": "Le message a été signalé avec succès",
"Message pinned": "Message épinglé",
"Mute": "Muet",
"mute-command-args": "[@nomdutilisateur]",
"mute-command-description": "Muter un utilisateur",
"mute-command-name": "muter",
"New": "Nouveaux",
"New Messages!": "Nouveaux Messages!",
"No chats here yet…": "Pas encore de messages ici...",
Expand All @@ -64,26 +55,35 @@
"This message was deleted...": "Ce message a été supprimé...",
"Thread": "Fil de discussion",
"Type your message": "Saisissez votre message",
"unban-command-args": "[@nomdutilisateur]",
"unban-command-description": "Débannir un utilisateur",
"unban-command-name": "débannir",
"Unmute": "Désactiver muet",
"unmute-command-args": "[@nomdutilisateur]",
"unmute-command-description": "Démuter un utilisateur",
"unmute-command-name": "démuter",
"Unpin": "Détacher",
"Upload type: \"{{ type }}\" is not allowed": "Le type de téléchargement: \"{{ type }}\" n'est pas autorisé",
"Wait until all attachments have uploaded": "Attendez que toutes les pièces jointes soient téléchargées",
"You have no channels currently": "Vous n'avez actuellement aucun canal",
"You've reached the maximum number of files": "Vous avez atteint le nombre maximum de fichiers",
"ban-command-args": "[@nomdutilisateur] [texte]",
"ban-command-description": "Bannir un utilisateur",
"ban-command-name": "bannir",
"giphy-command-args": "[texte]",
"giphy-command-description": "Poster un GIF aléatoire dans le canal",
"giphy-command-name": "giphy",
"live": "en direct",
"mute-command-args": "[@nomdutilisateur]",
"mute-command-description": "Muter un utilisateur",
"mute-command-name": "muter",
"replyCount_many": "{{ count }} réponses",
"replyCount_one": "1 réponse",
"replyCount_other": "{{ count }} réponses",
"searchResultsCount_many": "{{ count }} résultats",
"searchResultsCount_one": "1 résultat",
"searchResultsCount_other": "{{ count }} résultats",
"this content could not be displayed": "ce contenu n'a pu être affiché",
"unban-command-args": "[@nomdutilisateur]",
"unban-command-description": "Débannir un utilisateur",
"unban-command-name": "débannir",
"unmute-command-args": "[@nomdutilisateur]",
"unmute-command-description": "Démuter un utilisateur",
"unmute-command-name": "démuter",
"{{ commaSeparatedUsers }} and {{ moreCount }} more": "{{ commaSeparatedUsers }} et {{ moreCount }} autres",
"{{ commaSeparatedUsers }}, and {{ lastUser }}": "{{ commaSeparatedUsers }} et {{ lastUser }}",
"{{ firstUser }} and {{ secondUser }}": "{{ firstUser }} et {{ secondUser }}",
Expand Down
30 changes: 15 additions & 15 deletions src/i18n/hi.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"Attach files": "फाइल्स अटैच करे",
"ban-command-args": "[@उपयोगकर्तनाम] [पाठ]",
"ban-command-description": "एक उपयोगकर्ता को प्रतिषेधित करें",
"ban-command-name": "प्रतिषेधित करें",
"Cancel": "रद्द करें",
"Channel Missing": "चैनल उपलब्ध नहीं है",
"Close": "बंद करे",
Expand All @@ -28,9 +25,6 @@
"Error · Unsent": "फेल",
"Error: {{ errorMessage }}": "फेल: {{ errorMessage }}",
"Flag": "फ्लैग करे",
"giphy-command-args": "[पाठ]",
"giphy-command-description": "चैनल पर एक क्रॉफिल जीआइएफ पोस्ट करें",
"giphy-command-name": "गिफी",
"Latest Messages": "नवीनतम संदेश",
"Menu": "मेन्यू",
"Message Failed · Click to try again": "मैसेज फ़ैल - पुनः कोशिश करें",
Expand All @@ -39,9 +33,6 @@
"Message has been successfully flagged": "मैसेज को फ्लैग कर दिया गया है",
"Message pinned": "संदेश पिन किया गया",
"Mute": "म्यूट करे",
"mute-command-args": "[@उपयोगकर्तनाम]",
"mute-command-description": "एक उपयोगकर्ता को म्यूट करें",
"mute-command-name": "म्यूट करें",
"New": "नए",
"New Messages!": "नए मैसेज!",
"No chats here yet…": "यहां अभी तक कोई चैट नहीं...",
Expand All @@ -64,24 +55,33 @@
"This message was deleted...": "मैसेज हटा दिया गया",
"Thread": "रिप्लाई थ्रेड",
"Type your message": "अपना मैसेज लिखे",
"unban-command-args": "[@उपयोगकर्तनाम]",
"unban-command-description": "एक उपयोगकर्ता को प्रतिषेध से मुक्त करें",
"unban-command-name": "प्रतिषेध से मुक्त करें",
"Unmute": "अनम्यूट",
"unmute-command-args": "[@उपयोगकर्तनाम]",
"unmute-command-description": "एक उपयोगकर्ता को अनम्यूट करें",
"unmute-command-name": "म्यूट हटाएं",
"Unpin": "अनपिन",
"Upload type: \"{{ type }}\" is not allowed": "अपलोड प्रकार: \"{{ type }}\" की अनुमति नहीं है",
"Wait until all attachments have uploaded": "सभी अटैचमेंट अपलोड होने तक प्रतीक्षा करें",
"You have no channels currently": "आपके पास कोई चैनल नहीं है",
"You've reached the maximum number of files": "आप अधिकतम फ़ाइलों तक पहुँच गए हैं",
"ban-command-args": "[@उपयोगकर्तनाम] [पाठ]",
"ban-command-description": "एक उपयोगकर्ता को प्रतिषेधित करें",
"ban-command-name": "प्रतिषेधित करें",
"giphy-command-args": "[पाठ]",
"giphy-command-description": "चैनल पर एक क्रॉफिल जीआइएफ पोस्ट करें",
"giphy-command-name": "गिफी",
"live": "लाइव",
"mute-command-args": "[@उपयोगकर्तनाम]",
"mute-command-description": "एक उपयोगकर्ता को म्यूट करें",
"mute-command-name": "म्यूट करें",
"replyCount_one": "1 रिप्लाई",
"replyCount_other": "{{ count }} रिप्लाई",
"searchResultsCount_one": "1 परिणाम",
"searchResultsCount_other": "{{ count }} परिणाम",
"this content could not be displayed": "यह कॉन्टेंट लोड नहीं हो पाया",
"unban-command-args": "[@उपयोगकर्तनाम]",
"unban-command-description": "एक उपयोगकर्ता को प्रतिषेध से मुक्त करें",
"unban-command-name": "प्रतिषेध से मुक्त करें",
"unmute-command-args": "[@उपयोगकर्तनाम]",
"unmute-command-description": "एक उपयोगकर्ता को अनम्यूट करें",
"unmute-command-name": "म्यूट हटाएं",
"{{ commaSeparatedUsers }} and {{ moreCount }} more": "{{ commaSeparatedUsers }} और {{ moreCount }} और",
"{{ commaSeparatedUsers }}, and {{ lastUser }}": "{{ commaSeparatedUsers }} और {{ lastUser }}",
"{{ firstUser }} and {{ secondUser }}": "{{ firstUser }} और {{ secondUser }}",
Expand Down
30 changes: 15 additions & 15 deletions src/i18n/it.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"Attach files": "Allega file",
"ban-command-args": "[@nomeutente] [testo]",
"ban-command-description": "Vietare un utente",
"ban-command-name": "vietare",
"Cancel": "Annulla",
"Channel Missing": "Il canale non esiste",
"Close": "Chiudi",
Expand All @@ -28,9 +25,6 @@
"Error · Unsent": "Errore · Non inviato",
"Error: {{ errorMessage }}": "Errore: {{ errorMessage }}",
"Flag": "Segnala",
"giphy-command-args": "[testo]",
"giphy-command-description": "Pubblica un gif casuale sul canale",
"giphy-command-name": "giphy",
"Latest Messages": "Ultimi messaggi",
"Menu": "Menù",
"Message Failed · Click to try again": "Invio messaggio fallito · Clicca per riprovare",
Expand All @@ -39,9 +33,6 @@
"Message has been successfully flagged": "Il messaggio é stato segnalato con successo",
"Message pinned": "Messaggio bloccato",
"Mute": "Silenzia",
"mute-command-args": "[@nomeutente]",
"mute-command-description": "Silenzia un utente",
"mute-command-name": "silenzia",
"New": "Nuovo",
"New Messages!": "Nuovo messaggio!",
"No chats here yet…": "Non ci sono ancora messaggi qui...",
Expand All @@ -64,26 +55,35 @@
"This message was deleted...": "Questo messaggio é stato cancellato",
"Thread": "Thread",
"Type your message": "Scrivi il tuo messaggio",
"unban-command-args": "[@nomeutente]",
"unban-command-description": "Togliere il divieto a un utente",
"unban-command-name": "rimuovere il divieto",
"Unmute": "Riattiva le notifiche",
"unmute-command-args": "[@nomeutente]",
"unmute-command-description": "Togliere il silenzio a un utente",
"unmute-command-name": "rimuovi il silenzio",
"Unpin": "Sblocca",
"Upload type: \"{{ type }}\" is not allowed": "Tipo di caricamento: \"{{ type }}\" non è consentito",
"Wait until all attachments have uploaded": "Attendi il caricamento di tutti gli allegati",
"You have no channels currently": "Al momento non sono presenti canali",
"You've reached the maximum number of files": "Hai raggiunto il numero massimo di file",
"ban-command-args": "[@nomeutente] [testo]",
"ban-command-description": "Vietare un utente",
"ban-command-name": "vietare",
"giphy-command-args": "[testo]",
"giphy-command-description": "Pubblica un gif casuale sul canale",
"giphy-command-name": "giphy",
"live": "live",
"mute-command-args": "[@nomeutente]",
"mute-command-description": "Silenzia un utente",
"mute-command-name": "silenzia",
"replyCount_many": "{{ count }} risposte",
"replyCount_one": "Una risposta",
"replyCount_other": "{{ count }} risposte",
"searchResultsCount_many": "{{ count }} risultati",
"searchResultsCount_one": "1 risultato",
"searchResultsCount_other": "{{ count }} risultati",
"this content could not be displayed": "questo contenuto non puó essere mostrato",
"unban-command-args": "[@nomeutente]",
"unban-command-description": "Togliere il divieto a un utente",
"unban-command-name": "rimuovere il divieto",
"unmute-command-args": "[@nomeutente]",
"unmute-command-description": "Togliere il silenzio a un utente",
"unmute-command-name": "rimuovi il silenzio",
"{{ commaSeparatedUsers }} and {{ moreCount }} more": "{{ commaSeparatedUsers }} e altri {{ moreCount }}",
"{{ commaSeparatedUsers }}, and {{ lastUser }}": "{{ commaSeparatedUsers }} e {{ lastUser }}",
"{{ firstUser }} and {{ secondUser }}": "{{ firstUser }} e {{ secondUser }}",
Expand Down
Loading
Loading