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 Ukrainian translation for docs/uk/docs/tutorial/body.md #4574

Merged
merged 9 commits into from
Jul 27, 2023

Conversation

ss-o-furda
Copy link
Contributor

related: #1748

Copy link

@khlopko khlopko left a comment

Choose a reason for hiding this comment

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

Translated text exactly matches the content in English documentation and correct in Ukranian language.

@tiangolo tiangolo added lang-all Translations awaiting-review lang-uk Ukrainian translations labels May 10, 2022
@github-actions github-actions bot mentioned this pull request May 10, 2022
@codecov
Copy link

codecov bot commented May 10, 2022

Codecov Report

Patch and project coverage have no change.

Comparison is base (cf73051) 100.00% compared to head (6c8f4d0) 100.00%.
Report is 572 commits behind head on master.

❗ Current head 6c8f4d0 differs from pull request most recent head c28f0c2. Consider uploading reports for the commit c28f0c2 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##            master     #4574    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          540       532     -8     
  Lines        13969     13672   -297     
==========================================
- Hits         13969     13672   -297     

see 36 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Contributor

📝 Docs preview for commit 01a59a8 at: https://6279e6b1ba249d2fb4f74151--fastapi.netlify.app

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2022

📝 Docs preview for commit 6c8f4d0 at: https://62c2bb3b16537f5082af1040--fastapi.netlify.app

@tiangolo
Copy link
Owner

📝 Docs preview for commit 8bcc265 at: https://649a13994baeac0f81ee7234--fastapi.netlify.app

Copy link

@romashevchenko romashevchenko left a comment

Choose a reason for hiding this comment

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

Hi there! I'm a native speaker. I've reviewed the translation and made several suggestions to improve it.


Надсилання тіла із запитом `GET` має невизначену поведінку в специфікаціях, проте воно підтримується FastAPI лише для дуже складних/екстремальних випадків використання.

Оскільки це не рекомендується, інтерактивна документація з Swagger UI не відображатиме документацію для тіла запиту під час використання `GET`, і проксі-сервери в середині можуть не підтримувати її.

Choose a reason for hiding this comment

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

Suggested change
Оскільки це не рекомендується, інтерактивна документація з Swagger UI не відображатиме документацію для тіла запиту під час використання `GET`, і проксі-сервери в середині можуть не підтримувати її.
Оскільки це не рекомендується, інтерактивна документація з Swagger UI не відображатиме документацію для тіла запиту під час використання `GET`, і проксі-сервери вcередині можуть не підтримувати її.

{!> ../../../docs_src/body/tutorial001_py310.py!}
```

Так само, як і при оголошенні параметрів запиту, коли атрибут моделі має значення за замовчуванням, він не є обов’язковим. В іншому випадку це потрібно. Використовуйте `None`, щоб зробити його необов'язковим.

Choose a reason for hiding this comment

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

Suggested change
Так само, як і при оголошенні параметрів запиту, коли атрибут моделі має значення за замовчуванням, він не є обов’язковим. В іншому випадку це потрібно. Використовуйте `None`, щоб зробити його необов'язковим.
Так само, як і при оголошенні параметрів запиту, коли атрибут моделі має значення за замовчуванням, він не є обов’язковим. В іншому випадку - він потрібен. Використовуйте `None`, щоб зробити його необов'язковим.

}
```

## Оголоси її як параметр

Choose a reason for hiding this comment

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

Suggested change
## Оголоси її як параметр
## Оголосіть її як параметр


## Автоматична документація

Схеми JSON ваших моделей будуть частиною вашої схеми, згенерованої OpenAPI, і будуть показані в інтерактивній API документації:

Choose a reason for hiding this comment

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

Suggested change
Схеми JSON ваших моделей будуть частиною вашої схеми, згенерованої OpenAPI, і будуть показані в інтерактивній API документації:
Схеми JSON ваших моделей будуть частиною вашої схеми, згенерованої OpenAPI, і відображатимуться в інтерактивній API документації:


## Підтримка редактора

У вашому редакторі, всередині вашої функції, ви будете отримувати підказки типу та завершення скрізь (це б не сталося, якби ви отримали `dict` замість моделі Pydantic):

Choose a reason for hiding this comment

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

Suggested change
У вашому редакторі, всередині вашої функції, ви будете отримувати підказки типу та завершення скрізь (це б не сталося, якби ви отримали `dict` замість моделі Pydantic):
У вашому редакторі, всередині вашої функції, ви будете отримувати підказки типу та завершення скрізь (цього не сталося б, якби ви отримали `dict` замість моделі Pydantic):


<img src="/img/tutorial/body/image05.png">

!!! tip

Choose a reason for hiding this comment

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

Suggested change
!!! tip
!!! підказка

* Якщо параметр має **сингулярний тип** (наприклад, `int`, `float`, `str`, `bool` тощо), він буде інтерпретуватися як параметр **запиту**.
* Якщо параметр оголошується як тип **Pydantic моделі**, він інтерпретується як **тіло** запиту.

!!! note

Choose a reason for hiding this comment

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

Suggested change
!!! note
!!! примітка


## Без Pydantic

Якщо ви не хочете використовувати моделі Pydantic, ви також можете використовувати параметри **Body**. Перегляньте документацію для [Тіло – Кілька параметрів: сингулярні значення в тілі](body-multiple-params.md#singular-values-in-body){.internal-link target=_blank}.

Choose a reason for hiding this comment

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

Suggested change
Якщо ви не хочете використовувати моделі Pydantic, ви також можете використовувати параметри **Body**. Перегляньте документацію для [Тіло – Кілька параметрів: сингулярні значення в тілі](body-multiple-params.md#singular-values-in-body){.internal-link target=_blank}.
Якщо ви не хочете використовувати моделі Pydantic, ви також можете використовувати параметри **Тіла**. Перегляньте документацію для [Тіло – Кілька параметрів: сингулярні значення в тілі](body-multiple-params.md#singular-values-in-body){.internal-link target=_blank}.

@tiangolo
Copy link
Owner

Great, thanks @ss-o-furda! 🍰

And thanks for the reviews @khlopko and @romashevchenko 🙇

@tiangolo tiangolo merged commit 7b3d770 into tiangolo:master Jul 27, 2023
15 checks passed
erosennin pushed a commit to erosennin/fastapi that referenced this pull request Jul 31, 2023
…golo#4574)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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-uk Ukrainian translations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants