Add pt-br.json (#2753)

* Add pt-br.json

* Fix json name, changelog

* Format file

* Fix json name

* Fix CHANGELOG.md

* Rename pt-br.json to pt-BR.json

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update i18n.test.ts

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
This commit is contained in:
Paulo A 2022-12-09 00:18:02 -03:00 committed by GitHub
parent 849d54c0e7
commit 728f3a960c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 2 deletions

View File

@ -70,6 +70,11 @@ demo.queue().launch()
![label_bg_color_update](https://user-images.githubusercontent.com/41651716/204400372-80e53857-f26f-4a38-a1ae-1acadff75e89.gif)
### Add Brazilian Portuguese translation
Add Brazilian Portuguese translation (pt-BR.json) by [@pstwh](http://github.com/pstwh) in [PR 2753](https://github.com/gradio-app/gradio/pull/2753):
<img width="951" alt="image" src="https://user-images.githubusercontent.com/1778297/206615305-4c52031e-3f7d-4df2-8805-a79894206911.png">
## Bug Fixes:
* Fixed issue where image thumbnails were not showing when an example directory was provided
@ -85,10 +90,10 @@ No changes to highlight.
No changes to highlight.
## Full Changelog:
* Images in the chatbot component are now resized if they exceed a max width by [@abidlabs](https://github.com/abidlabs) in [PR 2748](https://github.com/gradio-app/gradio/pull/2748)
* Images in the chatbot component are now resized if they exceed a max width by [@abidlabs](https://github.com/abidlabs) in [PR 2748](https://github.com/gradio-app/gradio/pull/2748)
* Missing parameters have been added to `gr.Blocks().load()` by [@abidlabs](https://github.com/abidlabs) in [PR 2755](https://github.com/gradio-app/gradio/pull/2755)
## Contributors Shoutout:
No changes to highlight.

View File

@ -13,7 +13,7 @@ describe("i18n", () => {
langs.forEach(([code, translation]) => {
// must be "xx" or "xx-xx" -- http://4umi.com/web/html/languagecodes.php
const RE = /^([a-z]{2}-[a-z]{2}|[a-z]{2})$/;
const RE = /^([a-z]{2}-[a-zA-Z]{2}|[a-z]{2})$/;
assert.ok(RE.test(code));
assert.ok(translation.interface);

View File

@ -0,0 +1,22 @@
{
"interface": {
"drop_image": "Solte a Imagem Aqui",
"drop_video": "Solte o Vídeo Aqui",
"drop_audio": "Solte o Áudio Aqui",
"drop_file": "Solte o Arquivo Aqui",
"drop_csv": "Solte o CSV Aqui",
"click_to_upload": "Clique para o Upload",
"view_api": "Veja a API",
"built_with_Gradio": "Construído com gradio",
"copy_to_clipboard": "copiar para o clipboard",
"loading": "Carregando",
"error": "ERRO",
"empty": "Vazio"
},
"Submit": "Enviar",
"Clear": "Limpar",
"Interpret": "Interpretar",
"Flag": "Marcar",
"Examples": "Exemplos",
"or": "ou"
}