Skip to content

🌐 Add Portuguese translation for docs/pt/docs/tutorial/request-files.md#12706

Merged
alejsdev merged 6 commits into
fastapi:masterfrom
devluisrodrigues:PortugueseTranslationRequestFIle
Oct 30, 2024
Merged

🌐 Add Portuguese translation for docs/pt/docs/tutorial/request-files.md#12706
alejsdev merged 6 commits into
fastapi:masterfrom
devluisrodrigues:PortugueseTranslationRequestFIle

Conversation

@devluisrodrigues

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the lang-all Translations label Oct 28, 2024
@github-actions

Copy link
Copy Markdown
Contributor

@alejsdev alejsdev changed the title 🌐 Add Portuguese translation for docs/pt/docs/tutorial/request-files.md 🌐 Add Portuguese translation for docs/pt/docs/tutorial/request-files.md Oct 28, 2024
@alejsdev alejsdev added lang-pt Portuguese translations awaiting-review labels Oct 28, 2024
@github-actions

Copy link
Copy Markdown
Contributor

@nazarepiedady nazarepiedady left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great, 🚀.

@ceb10n ceb10n left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great @devluisrodrigues

Comment thread docs/pt/docs/tutorial/request-files.md Outdated

Importe `File` e `UploadFile` de `fastapi`:

//// tab | Python 3.9+

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

See this issue: #12554

You can replace these blocks with:

{* ../../docs_src/request_files/tutorial001_an_py39.py hl[3] *}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok, I'll take a look, and commit the changes. Thank you

Comment thread docs/pt/docs/tutorial/request-files.md Outdated

Crie parâmetros de arquivo da mesma forma que você faria para `Body` ou `Form`:

//// tab | Python 3.9+

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The same here: Update docs include syntax for source examples #12554

Comment thread docs/pt/docs/tutorial/request-files.md Outdated

Defina um parâmetro de arquivo com um tipo de `UploadFile`:

//// tab | Python 3.9+

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The same here: Update docs include syntax for source examples #12554

Comment thread docs/pt/docs/tutorial/request-files.md Outdated
Comment thread docs/pt/docs/tutorial/request-files.md Outdated

Você pode tornar um arquivo opcional usando anotações de tipo padrão e definindo um valor padrão de `None`:

//// tab | Python 3.10+

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The same here: Update docs include syntax for source examples #12554

Comment thread docs/pt/docs/tutorial/request-files.md Outdated

Você também pode usar `File()` com `UploadFile`, por exemplo, para definir metadados adicionais:

//// tab | Python 3.9+

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The same here: Update docs include syntax for source examples #12554

Comment thread docs/pt/docs/tutorial/request-files.md Outdated

Para usar isso, declare uma lista de `bytes` ou `UploadFile`:

//// tab | Python 3.9+

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The same here: Update docs include syntax for source examples #12554

Comment thread docs/pt/docs/tutorial/request-files.md Outdated

Da mesma forma de antes, você pode usar `File()` para definir parâmetros adicionais, mesmo para `UploadFile`:

//// tab | Python 3.9+

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The same here: Update docs include syntax for source examples #12554

@devluisrodrigues

Copy link
Copy Markdown
Contributor Author

Thank you for your feedback @ceb10n and @nazarepiedady . I'll adress the changes and update my PR

@github-actions

Copy link
Copy Markdown
Contributor

@devluisrodrigues

Copy link
Copy Markdown
Contributor Author

📝 Docs preview for commit cb7cbdb at: https://36fb23ee.fastapitiangolo.pages.dev

Modified Pages

* https://36fb23ee.fastapitiangolo.pages.dev/pt/tutorial/request-files/

Oh perfect, I can see now. Much cleaner interface!
Thank you @ceb10n !!

@ceb10n ceb10n left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you ❤️

Just missing some highlights

Comment thread docs/pt/docs/tutorial/request-files.md Outdated
```

////
{* ../../docs_src/request_files/tutorial001_02_an_py310.py hl[17] *}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

missed the highlight of the line 9:

{* ../../docs_src/request_files/tutorial001_02_an_py310.py hl[9,17] *}

Comment thread docs/pt/docs/tutorial/request-files.md Outdated
```

////
{* ../../docs_src/request_files/tutorial001_03_an_py39.py hl[15] *}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

here to:

{* ../../docs_src/request_files/tutorial001_03_an_py39.py hl[9,15] *}

Comment thread docs/pt/docs/tutorial/request-files.md Outdated
```

////
{* ../../docs_src/request_files/tutorial002_an_py39.py hl[15] *}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

here to:

{* ../../docs_src/request_files/tutorial002_an_py39.py hl[10,15] *}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ohh sorry, I got a little confused. I just fixed it!

@devluisrodrigues

Copy link
Copy Markdown
Contributor Author

Thank you again @ceb10n! Just fixed the missed highlights!

@github-actions

Copy link
Copy Markdown
Contributor

@ceb10n ceb10n left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚀

@alejsdev alejsdev merged commit ece28bc into fastapi:master Oct 30, 2024
@alejsdev

Copy link
Copy Markdown
Member

Thanks for your help! @devluisrodrigues 🥳
And thanks for the detailed review @ceb10n 💯

s-rigaud pushed a commit to s-rigaud/fastapi that referenced this pull request Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-2 lang-all Translations lang-pt Portuguese translations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants