Skip to content

Commit

Permalink
feat: add portuguese translation (#2224)
Browse files Browse the repository at this point in the history
* feat: add Brazilian Portuguese tranlsation

* feat: apply translation suggestions
thank you @gc0rtes

* fix: update new translations for pt-BR

* fix: babel i18n config

---------

Co-authored-by: Khushal Agarwal <khushal.agarwal987@gmail.com>
  • Loading branch information
arthurgeron and khushal87 committed Mar 1, 2024
1 parent bf6e1eb commit ecffe87
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 4 deletions.
Expand Up @@ -18,6 +18,7 @@ If you deploy your app to users who speak another language, you'll need to inter
- [Dutch (nl)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/nl.json)
- [Russian (ru)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/ru.json)
- [Turkish (tr)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/tr.json)
- [Brazilian Portuguese (pt-BR)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/pt-BR.json)

## Usage

Expand Down
2 changes: 1 addition & 1 deletion package/.babelrc
Expand Up @@ -23,7 +23,7 @@
"contextSeparator": "__",
"defaultContexts": [""],
"defaultNS": "en",
"locales": ["en", "es", "fr", "he", "hi", "it", "ja", "ko", "nl", "ru", "tr"],
"locales": ["en", "es", "fr", "he", "hi", "it", "ja", "ko", "nl", "ru", "tr", "pt-BR"],
"jsonSpace": 4,
"keySeparator": null,
"nsSeparator": null,
Expand Down
4 changes: 2 additions & 2 deletions package/babel.config.js
Expand Up @@ -21,7 +21,7 @@ module.exports = (api) => {
keyAsDefaultValue: ['en'],
keyAsDefaultValueForDerivedKeys: false,
keySeparator: null,
locales: ['en', 'es', 'fr', 'he', 'hi', 'it', 'ja', 'ko', 'nl', 'ru', 'tr'],
locales: ['en', 'es', 'fr', 'he', 'hi', 'it', 'ja', 'ko', 'nl', 'ru', 'tr', 'pt-BR'],
nsSeparator: null,
outputPath: 'src/i18n/{{locale}}.json',
},
Expand Down Expand Up @@ -63,7 +63,7 @@ module.exports = (api) => {
keyAsDefaultValue: ['en'],
keyAsDefaultValueForDerivedKeys: false,
keySeparator: null,
locales: ['en', 'es', 'fr', 'he', 'hi', 'it', 'ja', 'ko', 'nl', 'ru', 'tr'],
locales: ['en', 'es', 'fr', 'he', 'hi', 'it', 'ja', 'ko', 'nl', 'ru', 'tr', 'pt-BR'],
nsSeparator: null,
outputPath: 'src/i18n/{{locale}}.json',
},
Expand Down
2 changes: 1 addition & 1 deletion package/babel.i18next-extract.json
Expand Up @@ -7,7 +7,7 @@
"contextSeparator": "__",
"defaultContexts": [""],
"defaultNS": "en",
"locales": ["en", "es", "fr", "he", "hi", "it", "ja", "ko", "nl", "ru", "tr"],
"locales": ["en", "es", "fr", "he", "hi", "it", "ja", "ko", "nl", "ru", "tr", "pt-BR"],
"jsonSpace": 4,
"keySeparator": null,
"nsSeparator": null,
Expand Down
79 changes: 79 additions & 0 deletions package/src/i18n/pt-BR.json
@@ -0,0 +1,79 @@
{
"1 Reply": "1 Resposta",
"1 Thread Reply": "1 Resposta de Thread",
"Allow access to your Gallery": "Permitir acesso à sua Galeria",
"Allow camera access in device settings": "Permitir acesso à câmera nas configurações do dispositivo",
"Also send to channel": "Também enviar para o canal",
"Are you sure you want to permanently delete this message?": "Tem certeza de que deseja excluir esta mensagem permanentemente?",
"Are you sure?": "Tem certeza?",
"Block User": "Bloquear Usuário",
"Cancel": "Cancelar",
"Cannot Flag Message": "Não é possível reportar a mensagem",
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Considere como seu comentário pode fazer os outros se sentirem e certifique-se de seguir nossas Diretrizes da Comunidade",
"Copy Message": "Copiar Mensagem",
"Delete": "Excluir",
"Delete Message": "Excluir Mensagem",
"Device camera is used to take photos or videos.": "A câmera do dispositivo é usada para tirar fotos ou vídeos.",
"Do you want to send a copy of this message to a moderator for further investigation?": "Deseja enviar uma cópia desta mensagem para um moderador para investigação adicional?",
"Edit Message": "Editar Mensagem",
"Editing Message": "Editando Mensagem",
"Emoji matching": "Correspondência de Emoji",
"Empty message...": "Mensagem vazia...",
"Error loading": "Erro ao carregar",
"Error loading channel list...": "Erro ao carregar lista de canais...",
"Error loading messages for this channel...": "Erro ao carregar mensagens para este canal...",
"Error while loading, please reload/refresh": "Erro ao carregar, por favor recarregue/atualize",
"File type not supported": "Tipo de arquivo não suportado",
"Flag": "Reportar",
"Flag Message": "Reportar Mensagem",
"Flag action failed either due to a network issue or the message is already flagged": "A ação para reportar a mensagem falhou devido a um problema de rede ou a mensagem já foi reportada.",
"How about sending your first message to a friend?": "Que tal enviar sua primeira mensagem para um amigo?",
"Instant Commands": "Comandos Instantâneos",
"Let's start chatting!": "Vamos começar a conversar!",
"Links are disabled": "Links estão desabilitados",
"Loading channels...": "Carregando canais...",
"Loading messages...": "Carregando mensagens...",
"Loading...": "Carregando...",
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Limite máximo de tamanho de arquivo atingido. Por favor, faça o upload de um arquivo abaixo de {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.",
"Message Reactions": "Reações à Mensagem",
"Message deleted": "Mensagem excluída",
"Message flagged": "Mensagem sinalizada",
"Mute User": "Silenciar Usuário",
"Not supported": "Não suportado",
"Nothing yet...": "Nada ainda...",
"Ok": "Ok",
"Only visible to you": "Apenas visível para você",
"Open Settings": "Abrir Configurações",
"Photo": "Foto",
"Photos and Videos": "Fotos e Vídeos",
"Pin to Conversation": "Fixar na Conversa",
"Pinned by": "Fixado por",
"Please enable access to your photos and videos so you can share them.": "Por favor, habilite o acesso às suas fotos e vídeos para poder compartilhá-los.",
"Please select a channel first": "Por favor, selecione um canal primeiro",
"Reconnecting...": "Reconectando...",
"Reply": "Responder",
"Reply to Message": "Responder à Mensagem",
"Resend": "Reenviar",
"Search GIFs": "Pesquisar GIFs",
"Select More Photos": "Selecionar Mais Fotos",
"Send Anyway": "Enviar de qualquer maneira",
"Send a message": "Enviar uma mensagem",
"Sending links is not allowed in this conversation": "Não é permitido enviar links nesta conversa",
"Slow mode ON": "Modo Lento ATIVADO",
"The message has been reported to a moderator.": "A mensagem foi relatada a um moderador.",
"Thread Reply": "Respostas de Tópico",
"Unblock User": "Desbloquear Usuário",
"Unknown User": "Usuário Desconhecido",
"Unmute User": "Remover usuário do modo silencioso",
"Unpin from Conversation": "Desmarcar como fixado na conversa",
"Unread Messages": "Mensagens não lidas",
"Video": "Vídeo",
"You": "Você",
"You can't send messages in this channel": "Você não pode enviar mensagens neste canal",
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} e mais {{ nonSelfUserLength }} pessoa(s) estão digitando",
"{{ index }} of {{ photoLength }}": "{{ index }} de {{ photoLength }}",
"{{ replyCount }} Replies": "{{ replyCount }} Respostas",
"{{ replyCount }} Thread Replies": "{{ replyCount }} Respostas de Thread",
"{{ user }} is typing": "{{ user }} está digitando",
"🏙 Attachment...": "🏙 Anexo..."
}

0 comments on commit ecffe87

Please sign in to comment.