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

Add pt-br.json #2753

Merged
merged 11 commits into from Dec 9, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Expand Up @@ -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
Expand All @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion ui/packages/app/src/i18n.test.ts
Expand Up @@ -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);
Expand Down
22 changes: 22 additions & 0 deletions ui/packages/app/src/lang/pt-BR.json
@@ -0,0 +1,22 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to rename to pt-br.json for the test to pass!

"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"
}