Skip to content

Commit

Permalink
fix(i18n): do not translate command names (#2155)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupela authored Nov 3, 2023
1 parent 18dea38 commit b654b9a
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 58 deletions.
4 changes: 1 addition & 3 deletions src/components/MessageInput/hooks/useCommandTrigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ export const useCommandTrigger = <
)
.map((commandData) => {
const translatedCommandData: ValidCommand<StreamChatGenerics> = {
name: t(`${commandData.name}-command-name`, {
defaultValue: commandData.name,
}),
name: commandData.name,
};

if (commandData.args)
Expand Down
5 changes: 0 additions & 5 deletions src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,20 @@
"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
5 changes: 0 additions & 5 deletions src/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,11 @@
"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",
Expand All @@ -80,10 +77,8 @@
"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
5 changes: 0 additions & 5 deletions src/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,11 @@
"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",
Expand All @@ -80,10 +77,8 @@
"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
5 changes: 0 additions & 5 deletions src/i18n/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,20 @@
"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
5 changes: 0 additions & 5 deletions src/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,11 @@
"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",
Expand All @@ -80,10 +77,8 @@
"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
5 changes: 0 additions & 5 deletions src/i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,20 @@
"You've reached the maximum number of files": "ファイルの最大数に達しました",
"ban-command-args": "[@ユーザ名] [テキスト]",
"ban-command-description": "ユーザーを禁止する",
"ban-command-name": "禁止",
"giphy-command-args": "[テキスト]",
"giphy-command-description": "チャンネルにランダムなGIFを投稿する",
"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
5 changes: 0 additions & 5 deletions src/i18n/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,20 @@
"You've reached the maximum number of files": "최대 파일 수에 도달했습니다.",
"ban-command-args": "[@사용자이름] [텍스트]",
"ban-command-description": "사용자를 차단",
"ban-command-name": "차단",
"giphy-command-args": "[텍스트]",
"giphy-command-description": "채널에 무작위 GIF 게시",
"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
5 changes: 0 additions & 5 deletions src/i18n/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,20 @@
"You've reached the maximum number of files": "Je hebt het maximale aantal bestanden bereikt",
"ban-command-args": "[@gebruikersnaam] [tekst]",
"ban-command-description": "Een gebruiker verbannen",
"ban-command-name": "verbieden",
"giphy-command-args": "[tekst]",
"giphy-command-description": "Plaats een willekeurige gif in het kanaal",
"giphy-command-name": "giphy",
"live": "live",
"mute-command-args": "[@gebruikersnaam]",
"mute-command-description": "Een gebruiker dempen",
"mute-command-name": "demp",
"replyCount_one": "1 antwoord",
"replyCount_other": "{{ count }} antwoorden",
"searchResultsCount_one": "1 resultaat",
"searchResultsCount_other": "{{ count }} resultaten",
"this content could not be displayed": "Deze inhoud kan niet weergegeven worden",
"unban-command-args": "[@gebruikersnaam]",
"unban-command-description": "Een gebruiker debannen",
"unban-command-name": "verbod opheffen",
"unmute-command-args": "[@gebruikersnaam]",
"unmute-command-description": "Een gebruiker niet meer dempen",
"unmute-command-name": "dempen opheffen",
"{{ commaSeparatedUsers }} and {{ moreCount }} more": "{{ commaSeparatedUsers }} en {{ moreCount }} meer",
"{{ commaSeparatedUsers }}, and {{ lastUser }}": "{{ commaSeparatedUsers }} en {{ lastUser }}",
"{{ firstUser }} and {{ secondUser }}": "{{ firstUser }} en {{ secondUser }}",
Expand Down
5 changes: 0 additions & 5 deletions src/i18n/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,11 @@
"You've reached the maximum number of files": "Você atingiu o número máximo de arquivos",
"ban-command-args": "[@nomedeusuário] [texto]",
"ban-command-description": "Banir um usuário",
"ban-command-name": "banir",
"giphy-command-args": "[texto]",
"giphy-command-description": "Postar um gif aleatório no canal",
"giphy-command-name": "giphy",
"live": "ao vivo",
"mute-command-args": "[@nomedeusuário]",
"mute-command-description": "Silenciar um usuário",
"mute-command-name": "silenciar",
"replyCount_many": "{{ count }} respostas",
"replyCount_one": "1 resposta",
"replyCount_other": "{{ count }} respostas",
Expand All @@ -80,10 +77,8 @@
"this content could not be displayed": "este conteúdo não pôde ser exibido",
"unban-command-args": "[@nomedeusuário]",
"unban-command-description": "Desbanir um usuário",
"unban-command-name": "retirar o banimento",
"unmute-command-args": "[@nomedeusuário]",
"unmute-command-description": "Retirar o silenciamento de um usuário",
"unmute-command-name": "retirar o silêncio",
"{{ commaSeparatedUsers }} and {{ moreCount }} more": "{{ commaSeparatedUsers }} e mais {{ moreCount }}",
"{{ commaSeparatedUsers }}, and {{ lastUser }}": "{{ commaSeparatedUsers }} e {{ lastUser }}",
"{{ firstUser }} and {{ secondUser }}": "{{ firstUser }} e {{ secondUser }}",
Expand Down
5 changes: 0 additions & 5 deletions src/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,11 @@
"You've reached the maximum number of files": "Вы достигли максимального количества файлов",
"ban-command-args": "[@имяпользователя] [текст]",
"ban-command-description": "Заблокировать пользователя",
"ban-command-name": "заблокировать",
"giphy-command-args": "[текст]",
"giphy-command-description": "Опубликовать случайную GIF-анимацию в канале",
"giphy-command-name": "гиф",
"live": "В прямом эфире",
"mute-command-args": "[@имяпользователя]",
"mute-command-description": "Выключить микрофон у пользователя",
"mute-command-name": "выключить микрофон",
"replyCount_few": "{{ count }} ответов",
"replyCount_many": "{{ count }} ответов",
"replyCount_one": "1 ответ",
Expand All @@ -82,10 +79,8 @@
"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
5 changes: 0 additions & 5 deletions src/i18n/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,20 @@
"You've reached the maximum number of files": "Maksimum dosya sayısına ulaştınız",
"ban-command-args": "[@kullanıcıadı] [metin]",
"ban-command-description": "Bir kullanıcıyı yasakla",
"ban-command-name": "yasaklamak",
"giphy-command-args": "[metin]",
"giphy-command-description": "Rastgele bir gif'i kanala gönder",
"giphy-command-name": "giphy",
"live": "canlı",
"mute-command-args": "[@kullanıcıadı]",
"mute-command-description": "Bir kullanıcının sesini kapat",
"mute-command-name": "sessizleştirmek",
"replyCount_one": "1 cevap",
"replyCount_other": "{{ count }} cevaplar",
"searchResultsCount_one": "1 sonuç",
"searchResultsCount_other": "{{ count }} sonuç",
"this content could not be displayed": "bu içerik gösterilemiyor",
"unban-command-args": "[@kullanıcıadı]",
"unban-command-description": "Bir kullanıcının yasağını kaldır",
"unban-command-name": "yasak kaldırmak",
"unmute-command-args": "[@kullanıcıadı]",
"unmute-command-description": "Bir kullanıcının sesini aç",
"unmute-command-name": "sessizliği kaldırmak",
"{{ commaSeparatedUsers }} and {{ moreCount }} more": "{{ commaSeparatedUsers }} ve {{ moreCount }} daha",
"{{ commaSeparatedUsers }}, and {{ lastUser }}": "{{ commaSeparatedUsers }}, ve {{ lastUser }}",
"{{ firstUser }} and {{ secondUser }}": "{{ firstUser }} ve {{ secondUser }}",
Expand Down

0 comments on commit b654b9a

Please sign in to comment.