Skip to content

Commit ebcaa8f

Browse files
authored
fix(i18n): prevent removal of dynamically generated translation keys (#2154)
1 parent ff5300a commit ebcaa8f

File tree

12 files changed

+166
-165
lines changed

12 files changed

+166
-165
lines changed

i18next-parser.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
module.exports = {
33
createOldCatalogs: false,
44
input: ['./src/**/*.{tsx,ts}'],
5+
keepRemoved: true,
56
keySeparator: false,
67
locales: ['de', 'en', 'es', 'fr', 'hi', 'it', 'ja', 'ko', 'nl', 'pt', 'ru', 'tr'],
78
namespaceSeparator: false,

src/i18n/de.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"Attach files": "Dateien anhängen",
3-
"ban-command-args": "[@Benutzername] [Text]",
4-
"ban-command-description": "Einen Benutzer verbannen",
5-
"ban-command-name": "Verbannen",
63
"Cancel": "Stornieren",
74
"Channel Missing": "Kanal fehlt",
85
"Close": "Schließen",
@@ -28,9 +25,6 @@
2825
"Error · Unsent": "Fehler nicht gesendet",
2926
"Error: {{ errorMessage }}": "Fehler: {{ errorMessage }}",
3027
"Flag": "Meldung",
31-
"giphy-command-args": "[Text]",
32-
"giphy-command-description": "Poste ein zufälliges Gif in den Kanal",
33-
"giphy-command-name": "Giphy",
3428
"Latest Messages": "Neueste Nachrichten",
3529
"Menu": "Menü",
3630
"Message Failed · Click to try again": "Nachricht fehlgeschlagen · Klicken, um es erneut zu versuchen",
@@ -39,9 +33,6 @@
3933
"Message has been successfully flagged": "Nachricht wurde erfolgreich gemeldet",
4034
"Message pinned": "Nachricht gepinnt",
4135
"Mute": "Stumm schalten",
42-
"mute-command-args": "[@Benutzername]",
43-
"mute-command-description": "Stummschalten eines Benutzers",
44-
"mute-command-name": "Stumm schalten",
4536
"New": "Neu",
4637
"New Messages!": "Neue Nachrichten!",
4738
"No chats here yet…": "Noch keine Chats hier...",
@@ -64,24 +55,33 @@
6455
"This message was deleted...": "Diese Nachricht wurde gelöscht...",
6556
"Thread": "Thread",
6657
"Type your message": "Nachricht eingeben",
67-
"unban-command-args": "[@Benutzername]",
68-
"unban-command-description": "Einen Benutzer entbannen",
69-
"unban-command-name": "Entbannen",
7058
"Unmute": "Stummschaltung aufheben",
71-
"unmute-command-args": "[@Benutzername]",
72-
"unmute-command-description": "Stummschaltung eines Benutzers aufheben",
73-
"unmute-command-name": "Stummschaltung aufheben",
7459
"Unpin": "Pin entfernen",
7560
"Upload type: \"{{ type }}\" is not allowed": "Upload-Typ: \"{{ type }}\" ist nicht erlaubt",
7661
"Wait until all attachments have uploaded": "Bitte warten, bis alle Anhänge hochgeladen wurden",
7762
"You have no channels currently": "Du hast momentan noch keinen Channels",
7863
"You've reached the maximum number of files": "Die maximale Dateianzahl ist erreicht",
64+
"ban-command-args": "[@Benutzername] [Text]",
65+
"ban-command-description": "Einen Benutzer verbannen",
66+
"ban-command-name": "Verbannen",
67+
"giphy-command-args": "[Text]",
68+
"giphy-command-description": "Poste ein zufälliges Gif in den Kanal",
69+
"giphy-command-name": "Giphy",
7970
"live": "live",
71+
"mute-command-args": "[@Benutzername]",
72+
"mute-command-description": "Stummschalten eines Benutzers",
73+
"mute-command-name": "Stumm schalten",
8074
"replyCount_one": "1 Antwort",
8175
"replyCount_other": "{{ count }} Antworten",
8276
"searchResultsCount_one": "1 Ergebnis",
8377
"searchResultsCount_other": "{{ count }} Ergebnisse",
8478
"this content could not be displayed": "Dieser Inhalt konnte nicht angezeigt werden",
79+
"unban-command-args": "[@Benutzername]",
80+
"unban-command-description": "Einen Benutzer entbannen",
81+
"unban-command-name": "Entbannen",
82+
"unmute-command-args": "[@Benutzername]",
83+
"unmute-command-description": "Stummschaltung eines Benutzers aufheben",
84+
"unmute-command-name": "Stummschaltung aufheben",
8585
"{{ commaSeparatedUsers }} and {{ moreCount }} more": "{{ commaSeparatedUsers }} und {{moreCount}} Mehr",
8686
"{{ commaSeparatedUsers }}, and {{ lastUser }}": "{{ commaSeparatedUsers }} und {{ lastUser }}",
8787
"{{ firstUser }} and {{ secondUser }}": "{{ firstUser }} und {{ secondUser }}",

src/i18n/es.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"Attach files": "Adjuntar archivos",
3-
"ban-command-args": "[@usuario] [texto]",
4-
"ban-command-description": "Prohibir a un usuario",
5-
"ban-command-name": "prohibir",
63
"Cancel": "Cancelar",
74
"Channel Missing": "Falta canal",
85
"Close": "Cerca",
@@ -28,9 +25,6 @@
2825
"Error · Unsent": "Error · No enviado",
2926
"Error: {{ errorMessage }}": "Error: {{ errorMessage }}",
3027
"Flag": "Bandera",
31-
"giphy-command-args": "[texto]",
32-
"giphy-command-description": "Publicar un gif aleatorio en el canal",
33-
"giphy-command-name": "giphy",
3428
"Latest Messages": "Últimos mensajes",
3529
"Menu": "Menú",
3630
"Message Failed · Click to try again": "Mensaje fallido · Haga clic para volver a intentarlo",
@@ -39,9 +33,6 @@
3933
"Message has been successfully flagged": "El mensaje se marcó correctamente",
4034
"Message pinned": "Mensaje fijado",
4135
"Mute": "Mudo",
42-
"mute-command-args": "[@usuario]",
43-
"mute-command-description": "Silenciar a un usuario",
44-
"mute-command-name": "silenciar",
4536
"New": "Nuevo",
4637
"New Messages!": "¡Nuevos mensajes!",
4738
"No chats here yet…": "Aún no hay mensajes aquí...",
@@ -64,26 +55,35 @@
6455
"This message was deleted...": "Este mensaje fue eliminado ...",
6556
"Thread": "Hilo",
6657
"Type your message": "Escribe tu mensaje",
67-
"unban-command-args": "[@usuario]",
68-
"unban-command-description": "Quitar la prohibición a un usuario",
69-
"unban-command-name": "quitar la prohibición",
7058
"Unmute": "Activar sonido",
71-
"unmute-command-args": "[@usuario]",
72-
"unmute-command-description": "Anular el silencio de un usuario",
73-
"unmute-command-name": "quitar el silencio",
7459
"Unpin": "Desprender",
7560
"Upload type: \"{{ type }}\" is not allowed": "Tipo de carga: \"{{ type }}\" no está permitido",
7661
"Wait until all attachments have uploaded": "Espere hasta que se hayan cargado todos los archivos adjuntos",
7762
"You have no channels currently": "Actualmente no tienes canales",
7863
"You've reached the maximum number of files": "Has alcanzado el número máximo de archivos",
64+
"ban-command-args": "[@usuario] [texto]",
65+
"ban-command-description": "Prohibir a un usuario",
66+
"ban-command-name": "prohibir",
67+
"giphy-command-args": "[texto]",
68+
"giphy-command-description": "Publicar un gif aleatorio en el canal",
69+
"giphy-command-name": "giphy",
7970
"live": "En Vivo",
71+
"mute-command-args": "[@usuario]",
72+
"mute-command-description": "Silenciar a un usuario",
73+
"mute-command-name": "silenciar",
8074
"replyCount_many": "{{ count }} respuestas",
8175
"replyCount_one": "1 respuesta",
8276
"replyCount_other": "{{ count }} respuestas",
8377
"searchResultsCount_many": "{{ count }} resultados",
8478
"searchResultsCount_one": "1 resultado",
8579
"searchResultsCount_other": "{{ count }} resultados",
8680
"this content could not be displayed": "este contenido no se pudo mostrar",
81+
"unban-command-args": "[@usuario]",
82+
"unban-command-description": "Quitar la prohibición a un usuario",
83+
"unban-command-name": "quitar la prohibición",
84+
"unmute-command-args": "[@usuario]",
85+
"unmute-command-description": "Anular el silencio de un usuario",
86+
"unmute-command-name": "quitar el silencio",
8787
"{{ commaSeparatedUsers }} and {{ moreCount }} more": "{{ commaSeparatedUsers }} y {{ moreCount }} más",
8888
"{{ commaSeparatedUsers }}, and {{ lastUser }}": "{{ commaSeparatedUsers }} y {{ lastUser }}",
8989
"{{ firstUser }} and {{ secondUser }}": "{{ firstUser }} y {{ secondUser }}",

src/i18n/fr.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"Attach files": "Pièces jointes",
3-
"ban-command-args": "[@nomdutilisateur] [texte]",
4-
"ban-command-description": "Bannir un utilisateur",
5-
"ban-command-name": "bannir",
63
"Cancel": "Annuler",
74
"Channel Missing": "Canal Manquant",
85
"Close": "Fermer",
@@ -28,9 +25,6 @@
2825
"Error · Unsent": "Erreur - Non envoyé",
2926
"Error: {{ errorMessage }}": "Erreur : {{ errorMessage }}",
3027
"Flag": "Signaler",
31-
"giphy-command-args": "[texte]",
32-
"giphy-command-description": "Poster un GIF aléatoire dans le canal",
33-
"giphy-command-name": "giphy",
3428
"Latest Messages": "Derniers messages",
3529
"Menu": "Menu",
3630
"Message Failed · Click to try again": "Échec de l'envoi du message - Cliquez pour réessayer",
@@ -39,9 +33,6 @@
3933
"Message has been successfully flagged": "Le message a été signalé avec succès",
4034
"Message pinned": "Message épinglé",
4135
"Mute": "Muet",
42-
"mute-command-args": "[@nomdutilisateur]",
43-
"mute-command-description": "Muter un utilisateur",
44-
"mute-command-name": "muter",
4536
"New": "Nouveaux",
4637
"New Messages!": "Nouveaux Messages!",
4738
"No chats here yet…": "Pas encore de messages ici...",
@@ -64,26 +55,35 @@
6455
"This message was deleted...": "Ce message a été supprimé...",
6556
"Thread": "Fil de discussion",
6657
"Type your message": "Saisissez votre message",
67-
"unban-command-args": "[@nomdutilisateur]",
68-
"unban-command-description": "Débannir un utilisateur",
69-
"unban-command-name": "débannir",
7058
"Unmute": "Désactiver muet",
71-
"unmute-command-args": "[@nomdutilisateur]",
72-
"unmute-command-description": "Démuter un utilisateur",
73-
"unmute-command-name": "démuter",
7459
"Unpin": "Détacher",
7560
"Upload type: \"{{ type }}\" is not allowed": "Le type de téléchargement: \"{{ type }}\" n'est pas autorisé",
7661
"Wait until all attachments have uploaded": "Attendez que toutes les pièces jointes soient téléchargées",
7762
"You have no channels currently": "Vous n'avez actuellement aucun canal",
7863
"You've reached the maximum number of files": "Vous avez atteint le nombre maximum de fichiers",
64+
"ban-command-args": "[@nomdutilisateur] [texte]",
65+
"ban-command-description": "Bannir un utilisateur",
66+
"ban-command-name": "bannir",
67+
"giphy-command-args": "[texte]",
68+
"giphy-command-description": "Poster un GIF aléatoire dans le canal",
69+
"giphy-command-name": "giphy",
7970
"live": "en direct",
71+
"mute-command-args": "[@nomdutilisateur]",
72+
"mute-command-description": "Muter un utilisateur",
73+
"mute-command-name": "muter",
8074
"replyCount_many": "{{ count }} réponses",
8175
"replyCount_one": "1 réponse",
8276
"replyCount_other": "{{ count }} réponses",
8377
"searchResultsCount_many": "{{ count }} résultats",
8478
"searchResultsCount_one": "1 résultat",
8579
"searchResultsCount_other": "{{ count }} résultats",
8680
"this content could not be displayed": "ce contenu n'a pu être affiché",
81+
"unban-command-args": "[@nomdutilisateur]",
82+
"unban-command-description": "Débannir un utilisateur",
83+
"unban-command-name": "débannir",
84+
"unmute-command-args": "[@nomdutilisateur]",
85+
"unmute-command-description": "Démuter un utilisateur",
86+
"unmute-command-name": "démuter",
8787
"{{ commaSeparatedUsers }} and {{ moreCount }} more": "{{ commaSeparatedUsers }} et {{ moreCount }} autres",
8888
"{{ commaSeparatedUsers }}, and {{ lastUser }}": "{{ commaSeparatedUsers }} et {{ lastUser }}",
8989
"{{ firstUser }} and {{ secondUser }}": "{{ firstUser }} et {{ secondUser }}",

src/i18n/hi.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"Attach files": "फाइल्स अटैच करे",
3-
"ban-command-args": "[@उपयोगकर्तनाम] [पाठ]",
4-
"ban-command-description": "एक उपयोगकर्ता को प्रतिषेधित करें",
5-
"ban-command-name": "प्रतिषेधित करें",
63
"Cancel": "रद्द करें",
74
"Channel Missing": "चैनल उपलब्ध नहीं है",
85
"Close": "बंद करे",
@@ -28,9 +25,6 @@
2825
"Error · Unsent": "फेल",
2926
"Error: {{ errorMessage }}": "फेल: {{ errorMessage }}",
3027
"Flag": "फ्लैग करे",
31-
"giphy-command-args": "[पाठ]",
32-
"giphy-command-description": "चैनल पर एक क्रॉफिल जीआइएफ पोस्ट करें",
33-
"giphy-command-name": "गिफी",
3428
"Latest Messages": "नवीनतम संदेश",
3529
"Menu": "मेन्यू",
3630
"Message Failed · Click to try again": "मैसेज फ़ैल - पुनः कोशिश करें",
@@ -39,9 +33,6 @@
3933
"Message has been successfully flagged": "मैसेज को फ्लैग कर दिया गया है",
4034
"Message pinned": "संदेश पिन किया गया",
4135
"Mute": "म्यूट करे",
42-
"mute-command-args": "[@उपयोगकर्तनाम]",
43-
"mute-command-description": "एक उपयोगकर्ता को म्यूट करें",
44-
"mute-command-name": "म्यूट करें",
4536
"New": "नए",
4637
"New Messages!": "नए मैसेज!",
4738
"No chats here yet…": "यहां अभी तक कोई चैट नहीं...",
@@ -64,24 +55,33 @@
6455
"This message was deleted...": "मैसेज हटा दिया गया",
6556
"Thread": "रिप्लाई थ्रेड",
6657
"Type your message": "अपना मैसेज लिखे",
67-
"unban-command-args": "[@उपयोगकर्तनाम]",
68-
"unban-command-description": "एक उपयोगकर्ता को प्रतिषेध से मुक्त करें",
69-
"unban-command-name": "प्रतिषेध से मुक्त करें",
7058
"Unmute": "अनम्यूट",
71-
"unmute-command-args": "[@उपयोगकर्तनाम]",
72-
"unmute-command-description": "एक उपयोगकर्ता को अनम्यूट करें",
73-
"unmute-command-name": "म्यूट हटाएं",
7459
"Unpin": "अनपिन",
7560
"Upload type: \"{{ type }}\" is not allowed": "अपलोड प्रकार: \"{{ type }}\" की अनुमति नहीं है",
7661
"Wait until all attachments have uploaded": "सभी अटैचमेंट अपलोड होने तक प्रतीक्षा करें",
7762
"You have no channels currently": "आपके पास कोई चैनल नहीं है",
7863
"You've reached the maximum number of files": "आप अधिकतम फ़ाइलों तक पहुँच गए हैं",
64+
"ban-command-args": "[@उपयोगकर्तनाम] [पाठ]",
65+
"ban-command-description": "एक उपयोगकर्ता को प्रतिषेधित करें",
66+
"ban-command-name": "प्रतिषेधित करें",
67+
"giphy-command-args": "[पाठ]",
68+
"giphy-command-description": "चैनल पर एक क्रॉफिल जीआइएफ पोस्ट करें",
69+
"giphy-command-name": "गिफी",
7970
"live": "लाइव",
71+
"mute-command-args": "[@उपयोगकर्तनाम]",
72+
"mute-command-description": "एक उपयोगकर्ता को म्यूट करें",
73+
"mute-command-name": "म्यूट करें",
8074
"replyCount_one": "1 रिप्लाई",
8175
"replyCount_other": "{{ count }} रिप्लाई",
8276
"searchResultsCount_one": "1 परिणाम",
8377
"searchResultsCount_other": "{{ count }} परिणाम",
8478
"this content could not be displayed": "यह कॉन्टेंट लोड नहीं हो पाया",
79+
"unban-command-args": "[@उपयोगकर्तनाम]",
80+
"unban-command-description": "एक उपयोगकर्ता को प्रतिषेध से मुक्त करें",
81+
"unban-command-name": "प्रतिषेध से मुक्त करें",
82+
"unmute-command-args": "[@उपयोगकर्तनाम]",
83+
"unmute-command-description": "एक उपयोगकर्ता को अनम्यूट करें",
84+
"unmute-command-name": "म्यूट हटाएं",
8585
"{{ commaSeparatedUsers }} and {{ moreCount }} more": "{{ commaSeparatedUsers }} और {{ moreCount }} और",
8686
"{{ commaSeparatedUsers }}, and {{ lastUser }}": "{{ commaSeparatedUsers }} और {{ lastUser }}",
8787
"{{ firstUser }} and {{ secondUser }}": "{{ firstUser }} और {{ secondUser }}",

src/i18n/it.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"Attach files": "Allega file",
3-
"ban-command-args": "[@nomeutente] [testo]",
4-
"ban-command-description": "Vietare un utente",
5-
"ban-command-name": "vietare",
63
"Cancel": "Annulla",
74
"Channel Missing": "Il canale non esiste",
85
"Close": "Chiudi",
@@ -28,9 +25,6 @@
2825
"Error · Unsent": "Errore · Non inviato",
2926
"Error: {{ errorMessage }}": "Errore: {{ errorMessage }}",
3027
"Flag": "Segnala",
31-
"giphy-command-args": "[testo]",
32-
"giphy-command-description": "Pubblica un gif casuale sul canale",
33-
"giphy-command-name": "giphy",
3428
"Latest Messages": "Ultimi messaggi",
3529
"Menu": "Menù",
3630
"Message Failed · Click to try again": "Invio messaggio fallito · Clicca per riprovare",
@@ -39,9 +33,6 @@
3933
"Message has been successfully flagged": "Il messaggio é stato segnalato con successo",
4034
"Message pinned": "Messaggio bloccato",
4135
"Mute": "Silenzia",
42-
"mute-command-args": "[@nomeutente]",
43-
"mute-command-description": "Silenzia un utente",
44-
"mute-command-name": "silenzia",
4536
"New": "Nuovo",
4637
"New Messages!": "Nuovo messaggio!",
4738
"No chats here yet…": "Non ci sono ancora messaggi qui...",
@@ -64,26 +55,35 @@
6455
"This message was deleted...": "Questo messaggio é stato cancellato",
6556
"Thread": "Thread",
6657
"Type your message": "Scrivi il tuo messaggio",
67-
"unban-command-args": "[@nomeutente]",
68-
"unban-command-description": "Togliere il divieto a un utente",
69-
"unban-command-name": "rimuovere il divieto",
7058
"Unmute": "Riattiva le notifiche",
71-
"unmute-command-args": "[@nomeutente]",
72-
"unmute-command-description": "Togliere il silenzio a un utente",
73-
"unmute-command-name": "rimuovi il silenzio",
7459
"Unpin": "Sblocca",
7560
"Upload type: \"{{ type }}\" is not allowed": "Tipo di caricamento: \"{{ type }}\" non è consentito",
7661
"Wait until all attachments have uploaded": "Attendi il caricamento di tutti gli allegati",
7762
"You have no channels currently": "Al momento non sono presenti canali",
7863
"You've reached the maximum number of files": "Hai raggiunto il numero massimo di file",
64+
"ban-command-args": "[@nomeutente] [testo]",
65+
"ban-command-description": "Vietare un utente",
66+
"ban-command-name": "vietare",
67+
"giphy-command-args": "[testo]",
68+
"giphy-command-description": "Pubblica un gif casuale sul canale",
69+
"giphy-command-name": "giphy",
7970
"live": "live",
71+
"mute-command-args": "[@nomeutente]",
72+
"mute-command-description": "Silenzia un utente",
73+
"mute-command-name": "silenzia",
8074
"replyCount_many": "{{ count }} risposte",
8175
"replyCount_one": "Una risposta",
8276
"replyCount_other": "{{ count }} risposte",
8377
"searchResultsCount_many": "{{ count }} risultati",
8478
"searchResultsCount_one": "1 risultato",
8579
"searchResultsCount_other": "{{ count }} risultati",
8680
"this content could not be displayed": "questo contenuto non puó essere mostrato",
81+
"unban-command-args": "[@nomeutente]",
82+
"unban-command-description": "Togliere il divieto a un utente",
83+
"unban-command-name": "rimuovere il divieto",
84+
"unmute-command-args": "[@nomeutente]",
85+
"unmute-command-description": "Togliere il silenzio a un utente",
86+
"unmute-command-name": "rimuovi il silenzio",
8787
"{{ commaSeparatedUsers }} and {{ moreCount }} more": "{{ commaSeparatedUsers }} e altri {{ moreCount }}",
8888
"{{ commaSeparatedUsers }}, and {{ lastUser }}": "{{ commaSeparatedUsers }} e {{ lastUser }}",
8989
"{{ firstUser }} and {{ secondUser }}": "{{ firstUser }} e {{ secondUser }}",

0 commit comments

Comments
 (0)