chore(i18n,curriculum): update translations (#44484)

This commit is contained in:
camperbot
2021-12-13 22:11:12 +05:30
committed by GitHub
parent cd9c57a8c5
commit fc3756656a
4 changed files with 63 additions and 63 deletions

View File

@ -1,6 +1,6 @@
---
id: bd7158d8c443edefaeb5bd0f
title: File Metadata Microservice
title: Мікросервіс метаданих файлу
challengeType: 4
forumTopicId: 301506
dashedName: file-metadata-microservice
@ -8,21 +8,21 @@ dashedName: file-metadata-microservice
# --description--
Build a full stack JavaScript app that is functionally similar to this: <https://file-metadata-microservice.freecodecamp.rocks/>. Working on this project will involve you writing your code using one of the following methods:
Створіть full stack додаток на JavaScript, який функціонально схожий до цього:<https://file-metadata-microservice.freecodecamp.rocks/>. Робота над цим проектом залучатиме тебе писати свій код використовуючи один з наступних методів:
- Clone [this GitHub repo](https://github.com/freeCodeCamp/boilerplate-project-filemetadata/) and complete your project locally.
- Use [our Replit starter project](https://replit.com/github/freeCodeCamp/boilerplate-project-filemetadata) to complete your project.
- Use a site builder of your choice to complete the project. Be sure to incorporate all the files from our GitHub repo.
- Клонувати [цей репозиторій з GitHub](https://github.com/freeCodeCamp/boilerplate-project-filemetadata/) та локально завершити свій проект.
- Використати [наш проект для початківців на Replit](https://replit.com/github/freeCodeCamp/boilerplate-project-filemetadata) для завершення свого проекту.
- Використати конструктор сайтів на свій вибір для завершення проекту. Впевніться, що ви зберегли всі файли із нашого GitHub репозиторію.
When you are done, make sure a working demo of your project is hosted somewhere public. Then submit the URL to it in the `Solution Link` field. Optionally, also submit a link to your project's source code in the `GitHub Link` field.
По завершенню переконайтеся, що працююча демоверсія вашого проекту розміщена у відкритому доступі. Потім введіть його URL-адресу в поле `Solution Link`. За бажанням також можете ввести посилання на вихідний код вашого проєкту в полі `GitHub Link`.
# --instructions--
**HINT:** You can use the `multer` npm package to handle file uploading.
**ПІДКАЗКА:** Ви можете використовувати npm пакет `multer` щоб опрацювати завантаження файлу.
# --hints--
You should provide your own project, not the example URL.
Вам необхідно вказати свій власний проект, а не приклад URL-адреси.
```js
(getUserInput) => {
@ -34,7 +34,7 @@ You should provide your own project, not the example URL.
};
```
You can submit a form that includes a file upload.
Ви можете надіслати форму, що включає в себе завантаження файлу.
```js
async (getUserInput) => {
@ -45,7 +45,7 @@ async (getUserInput) => {
};
```
The form file input field has the `name` attribute set to `upfile`.
Поле вводу файлу форми має параметр `name` встановлений в `upfile`.
```js
async (getUserInput) => {
@ -56,7 +56,7 @@ async (getUserInput) => {
};
```
When you submit a file, you receive the file `name`, `type`, and `size` in bytes within the JSON response.
Коли ви надсилаєте файл, ви отримуєте `name`, `type` і `size` файлу в байтах у відповіді JSON.
```js
async (getUserInput) => {

View File

@ -1,6 +1,6 @@
---
id: bd7158d8c443edefaeb5bdef
title: Timestamp Microservice
title: Мікросервіс часової мітки
challengeType: 4
forumTopicId: 301508
dashedName: timestamp-microservice
@ -8,19 +8,19 @@ dashedName: timestamp-microservice
# --description--
Build a full stack JavaScript app that is functionally similar to this: <https://timestamp-microservice.freecodecamp.rocks/>. Working on this project will involve you writing your code using one of the following methods:
Створіть full stack додаток на JavaScript, який функціонально схожий до цього: <https://timestamp-microservice.freecodecamp.rocks/>. Робота над цим проектом залучатиме тебе писати свій код використовуючи один з наступних методів:
- Clone [this GitHub repo](https://github.com/freeCodeCamp/boilerplate-project-timestamp/) and complete your project locally.
- Use [our Replit starter project](https://replit.com/github/freeCodeCamp/boilerplate-project-timestamp) to complete your project.
- Use a site builder of your choice to complete the project. Be sure to incorporate all the files from our GitHub repo.
- Клонувати [цей репозиторій з GitHub](https://github.com/freeCodeCamp/boilerplate-project-timestamp/) та локально завершити свій проект.
- Використати [наш проект для початківців на Replit](https://replit.com/github/freeCodeCamp/boilerplate-project-timestamp) для завершення свого проекту.
- Використати конструктор сайтів на свій вибір для завершення проекту. Впевніться, що ви зберегли всі файли із нашого GitHub репозиторію.
When you are done, make sure a working demo of your project is hosted somewhere public. Then submit the URL to it in the `Solution Link` field. Optionally, also submit a link to your project's source code in the `GitHub Link` field.
По завершенню переконайтеся, що працююча демоверсія вашого проєкту розміщена у відкритому доступі. Потім введіть його URL-адресу в поле `Solution Link`. За бажанням також можете ввести посилання на вихідний код вашого проєкту в полі `GitHub Link`.
**Note:** Time zones conversion is not a purpose of this project, so assume all sent valid dates will be parsed with `new Date()` as GMT dates.
**Зверніть увагу:** оскільки мета проєкту не в перетворенні часу, припускайте, що усі відправлені дати будуть розглянуті `new Date()` як GMT.
# --hints--
You should provide your own project, not the example URL.
Вам необхідно вказати свій власний проект, а не приклад URL-адреси.
```js
(getUserInput) => {
@ -30,7 +30,7 @@ You should provide your own project, not the example URL.
};
```
A request to `/api/:date?` with a valid date should return a JSON object with a `unix` key that is a Unix timestamp of the input date in milliseconds
Запит на `/api/:date?` з дійсною датою має повернути об’єкт JSON з `unix` ключем, який є часовою міткою Unix введеної дати в мілісекундах
```js
(getUserInput) =>
@ -48,7 +48,7 @@ A request to `/api/:date?` with a valid date should return a JSON object with a
);
```
A request to `/api/:date?` with a valid date should return a JSON object with a `utc` key that is a string of the input date in the format: `Thu, 01 Jan 1970 00:00:00 GMT`
Запит на `/api/:date?` з дійсною датою має повернути об'єкт JSON з `utc` ключем, який є рядком введеної дати в форматі: `Thu, 01 Jan 1970 00:00:00 GMT`
```js
(getUserInput) =>
@ -66,7 +66,7 @@ A request to `/api/:date?` with a valid date should return a JSON object with a
);
```
A request to `/api/1451001600000` should return `{ unix: 1451001600000, utc: "Fri, 25 Dec 2015 00:00:00 GMT" }`
Запит до `/api/1451001600000` має повертати `{ unix: 1451001600000, utc: "Fri, 25 Dec 2015 00:00:00 GMT" }`
```js
(getUserInput) =>
@ -83,7 +83,7 @@ A request to `/api/1451001600000` should return `{ unix: 1451001600000, utc: "Fr
);
```
Your project can handle dates that can be successfully parsed by `new Date(date_string)`
Ваш проєкт може обробляти дати, які можуть бути успішно розпарсені за допомогою `new Date(date_string)`
```js
(getUserInput) =>
@ -100,7 +100,7 @@ Your project can handle dates that can be successfully parsed by `new Date(date_
);
```
If the input date string is invalid, the api returns an object having the structure `{ error : "Invalid Date" }`
Якщо введений рядок дати невірний, api повертає об'єкт, що має структуру `{ error : "Invalid Date" }`
```js
(getUserInput) =>
@ -114,7 +114,7 @@ If the input date string is invalid, the api returns an object having the struct
);
```
An empty date parameter should return the current time in a JSON object with a `unix` key
Порожній параметр дати має повернути поточний час в об'єкті JSON з ключем `unix`
```js
(getUserInput) =>
@ -129,7 +129,7 @@ An empty date parameter should return the current time in a JSON object with a `
);
```
An empty date parameter should return the current time in a JSON object with a `utc` key
Порожній параметр дати має повернути поточний час в об'єкті JSON з ключем `utc`
```js
(getUserInput) =>

View File

@ -1,6 +1,6 @@
---
id: bd7158d8c443edefaeb5bd0e
title: URL Shortener Microservice
title: Мікросервіс скорочування URL-адрес
challengeType: 4
forumTopicId: 301509
dashedName: url-shortener-microservice
@ -8,21 +8,21 @@ dashedName: url-shortener-microservice
# --description--
Build a full stack JavaScript app that is functionally similar to this: <https://url-shortener-microservice.freecodecamp.rocks/>. Working on this project will involve you writing your code using one of the following methods:
Створіть повний пакет додатку на JavaScript, який функціонально схожий до цього:<https://url-shortener-microservice.freecodecamp.rocks/>. Робота над цим проєктом включатиме написання коду одним із таких методів:
- Clone [this GitHub repo](https://github.com/freeCodeCamp/boilerplate-project-urlshortener/) and complete your project locally.
- Use [our Replit starter project](https://replit.com/github/freeCodeCamp/boilerplate-project-urlshortener) to complete your project.
- Use a site builder of your choice to complete the project. Be sure to incorporate all the files from our GitHub repo.
- Клонувати [цей репозиторій з GitHub](https://github.com/freeCodeCamp/boilerplate-project-urlshortener/) та локально завершити свій проект.
- Використати [наш проект для початківців на Replit](https://replit.com/github/freeCodeCamp/boilerplate-project-urlshortener) для завершення свого проекту.
- Використати конструктор сайту на свій вибір для завершення проекту. Впевнитися, що включили всі файли з нашого репозиторію GitHub.
When you are done, make sure a working demo of your project is hosted somewhere public. Then submit the URL to it in the `Solution Link` field. Optionally, also submit a link to your project's source code in the `GitHub Link` field.
По завершенню переконайтеся, що працююча демо-версія вашого проекту розміщена у відкритому доступі. Потім введіть його URL-адресу в поле `Solution Link`. За бажанням також можете ввести посилання на вихідний код вашого проєкту в полі `GitHub Link`.
# --instructions--
**HINT:** Do not forget to use a body parsing middleware to handle the POST requests. Also, you can use the function `dns.lookup(host, cb)` from the `dns` core module to verify a submitted URL.
**ПІДКАЗКА:** не забудьте використовувати проміжне програмне забезпечення body parsing для обробки запитів POST. Також ви можете використовувати функцію `dns.lookup(host, cb)` з основного модуля `dns` для перевірки надісланої URL-адреси.
# --hints--
You should provide your own project, not the example URL.
Вам необхідно вказати свій власний проект, а не приклад URL-адреси.
```js
(getUserInput) => {
@ -34,7 +34,7 @@ You should provide your own project, not the example URL.
};
```
You can POST a URL to `/api/shorturl` and get a JSON response with `original_url` and `short_url` properties. Here's an example: `{ original_url : 'https://freeCodeCamp.org', short_url : 1}`
Ви можете POST URL до `/api/shorturl` та отримати відповідь JSON з властивостями `original_url` і `short_url`. Ось приклад: `{ original_url : 'https://freeCodeCamp.org', short_url : 1}`
```js
async (getUserInput) => {
@ -56,7 +56,7 @@ async (getUserInput) => {
};
```
When you visit `/api/shorturl/<short_url>`, you will be redirected to the original URL.
Коли ви відкриєте `/api/shorturl/<short_url>`, вас буде перенаправлено на оригінальне URL.
```js
async (getUserInput) => {
@ -88,7 +88,7 @@ async (getUserInput) => {
};
```
If you pass an invalid URL that doesn't follow the valid `http://www.example.com` format, the JSON response will contain `{ error: 'invalid url' }`
Якщо ви введете недійсний URL, який не відповідає дійсному формату `http://www.example.com` , то відповідь JSON буде містити `{ error: 'invalid url' }`
```js
async (getUserInput) => {

View File

@ -1,6 +1,6 @@
---
id: 587d824a367417b2b2512c44
title: Stock Price Checker
title: Перевірка ціни на ринку акцій
challengeType: 4
forumTopicId: 301572
dashedName: stock-price-checker
@ -8,38 +8,38 @@ dashedName: stock-price-checker
# --description--
Build a full stack JavaScript app that is functionally similar to this: <https://stock-price-checker.freecodecamp.rocks/>.
Напишіть повний пакет програми JavaScript, що функціонально подібний до цього: <https://stock-price-checker.freecodecamp.rocks/>.
Since all reliable stock price APIs require an API key, we've built a workaround. Use <https://stock-price-checker-proxy.freecodecamp.rocks/> to get up-to-date stock price information without needing to sign up for your own key.
Оскільки всі надійні API цін на акції вимагають API-ключа, ми створили обхідний шлях. Користуйтесь <https://stock-price-checker-proxy.freecodecamp.rocks/>, аби отримувати актуальну інформацію про ціни на акції без необхідності підписуватись на власний ключ.
Working on this project will involve you writing your code using one of the following methods:
При роботі над цим проєктом Ви будете писати код, використовуючи один із наступних методів:
- Clone [this GitHub repo](https://github.com/freeCodeCamp/boilerplate-project-stockchecker/) and complete your project locally.
- Use [our Replit starter project](https://replit.com/github/freeCodeCamp/boilerplate-project-stockchecker) to complete your project.
- Use a site builder of your choice to complete the project. Be sure to incorporate all the files from our GitHub repo.
- Дублюйте [цей репозиторій GitHub](https://github.com/freeCodeCamp/boilerplate-project-stockchecker/) та завершіть свій проєкт локально.
- Використовуйте [наш стартовий проєкт Replit](https://replit.com/github/freeCodeCamp/boilerplate-project-stockchecker) для завершення Вашого проєкту.
- Використовуйте конструктор сайту на власний розсуд, щоб завершити проєкт. Впевніться, що Ви включили усі файли з нашого репозиторію GitHub.
When you are done, make sure a working demo of your project is hosted somewhere public. Then submit the URL to it in the `Solution Link` field. Optionally, also submit a link to your project's source code in the `GitHub Link` field.
Коли Ви завершите роботу, переконайтесь, що робоча демоверсія Вашого проєкту розміщена у вільному доступі. Потім введіть URL-адресу проєкту у поле `Solution Link`. За бажанням також введіть посилання на вихідний код проєкту у полі `GitHub Link`.
# --instructions--
1. SET `NODE_ENV` to `test` without quotes and set `DB` to your MongoDB connection string
2. Complete the project in `routes/api.js` or by creating a handler/controller
3. You will add any security features to `server.js`
4. You will create all of the functional tests in `tests/2_functional-tests.js`
1. Встановіть `NODE_ENV` до `test` без лапок та встановіть `DB` на ваш MongoDB
2. Завершіть проект в `routes/api.js` або через створення обробника/контролера
3. Додайте будь-які заходи безпеки до `server.js`
4. Створіть усі функціональні тести в `tests/2_functional-tests.js`
**Note** Privacy Considerations: Due to the requirement that only 1 like per IP should be accepted, you will have to save IP addresses. It is important to remain compliant with data privacy laws such as the General Data Protection Regulation. One option is to get permission to save the user's data, but it is much simpler to anonymize it. For this challenge, remember to anonymize IP addresses before saving them to the database. If you need ideas on how to do this, you may choose to hash the data, truncate it, or set part of the IP address to 0.
**Зверніть увагу** на питання конфіденційності: вам доведеться зберегти IP-адресу. Важливо дотримуватися законів про конфіденційність даних, як от загального регламенту про захист даних. Один із варіантів — отримати дозвіл на збереження даних користувача, однак все ж простіше зробити їх анонімними. Не забудьте зробити ваші IP-адреси анонімними, перш ніж зберігати їх до бази даних у цьому завданні. Для цього ви можете скористатися хеш-функцією, методом truncate чи просто змінити частину IP-адреси на 0.
Write the following tests in `tests/2_functional-tests.js`:
Напишіть наступні тести в `tests/2_functional-tests.js`:
- Viewing one stock: GET request to `/api/stock-prices/`
- Viewing one stock and liking it: GET request to `/api/stock-prices/`
- Viewing the same stock and liking it again: GET request to `/api/stock-prices/`
- Viewing two stocks: GET request to `/api/stock-prices/`
- Viewing two stocks and liking them: GET request to `/api/stock-prices/`
- Перегляд однієї акції: запит GET до `/api/stock-prices/`
- Якщо Ви переглянули одну акцію й вона Вам сподобалась: запит GET в `/api/stock-prices/`
- Якщо Ви переглянули ту ж саму акцію й обрали її знову: запит GET в `/api/stock-prices/`
- Якщо Ви переглянули дві акції: запит GET в `/api/stock-prices/`
- Якщо Ви переглянули дві акції та вони Вам сподобались: запит GET в `/api/stock-prices/`
# --hints--
You can provide your own project, not the example URL.
Ви можете додати свій проєкт, а не URL-посилання прикладу.
```js
(getUserInput) => {
@ -49,7 +49,7 @@ You can provide your own project, not the example URL.
};
```
You should set the content security policies to only allow loading of scripts and CSS from your server.
Ви маєте налаштувати політику безпеки вмісту так, щоб дозволити завантаження скриптів та CSS лише з вашого сервера.
```js
async (getUserInput) => {
@ -64,7 +64,7 @@ async (getUserInput) => {
};
```
You can send a `GET` request to `/api/stock-prices`, passing a NASDAQ stock symbol to a `stock` query parameter. The returned object will contain a property named `stockData`.
Ви можете надіслати запит `GET` до `/api/stock-prices`, передаючи символ акції NASDAQ в параметр запиту `stock`. Отриманий об'єкт міститиме властивість із назвою `stockData`.
```js
async (getUserInput) => {
@ -76,7 +76,7 @@ async (getUserInput) => {
};
```
The `stockData` property includes the `stock` symbol as a string, the `price` as a number, and `likes` as a number.
Властивість `stockData` включає символ `stock` у вигляді строки, `price` та `likes` у вигляді чисел.
```js
async (getUserInput) => {
@ -91,13 +91,13 @@ async (getUserInput) => {
};
```
You can also pass along a `like` field as `true` (boolean) to have your like added to the stock(s). Only 1 like per IP should be accepted.
Ви також можете передати поле `like` як `true` (логічний тип), аби ваші вподобання було додано до акції(й). Приймається лише одне вподобання на IP.
```js
```
If you pass along 2 stocks, the returned value will be an array with information about both stocks. Instead of `likes`, it will display `rel_likes` (the difference between the likes on both stocks) for both `stockData` objects.
Якщо Ви передасте 2 акції, то отриманим значенням буде масив із інформацією про обидві акції. Замість `likes` буде показано `rel_likes` (різниця між уподобаннями на обох акціях) для обох об'єктів `stockData`.
```js
async (getUserInput) => {
@ -112,7 +112,7 @@ async (getUserInput) => {
};
```
All 5 functional tests are complete and passing.
Усі 5 функціональних тестів завершено та успішно пройдено.
```js
async (getUserInput) => {