chore(i18n,curriculum): processed translations (#43361)

This commit is contained in:
camperbot
2021-09-03 01:11:45 -07:00
committed by GitHub
parent 53c88efb0d
commit fddb88327c
36 changed files with 540 additions and 531 deletions

View File

@ -1,6 +1,6 @@
---
id: 594810f028c0303b75339ad4
title: Word wrap
title: Quebra de linha
challengeType: 5
forumTopicId: 302344
dashedName: word-wrap
@ -8,52 +8,51 @@ dashedName: word-wrap
# --description--
Even today, with proportional fonts and complex layouts, there are still cases where you need to wrap text at a specified column. The basic task is to wrap a paragraph of text in a simple way.
Mesmo hoje, com fontes proporcionais e layouts complexos, ainda há casos em que você precisa quebrar o texto em uma determinada coluna. A tarefa básica é quebrar um parágrafo de um texto de uma forma simples.
# --instructions--
Write a function that can wrap this text to any number of characters. As an example, the text wrapped to 80 characters should look like the following:
Escreva uma função que possa quebrar este texto para qualquer número de caracteres. Como exemplo, o texto quebrado com 80 caracteres deve se parecer com o seguinte:
<pre>
Wrap text using a more sophisticated algorithm such as the Knuth and Plass TeX
algorithm. If your language provides this, you get easy extra credit, but you
must reference documentation indicating that the algorithm is something better
than a simple minimum length algorithm.
Quebre o texto usando um algoritmo mais sofisticado, como o algoritmo de Knuth e Plass TeX. Se o seu idioma fornece isso, você obtém crédito extra fácil, mas você
deve fazer referência à documentação que indica que o algoritmo é algo melhor
do que um simples algoritmo de comprimento mínimo.
</pre>
# --hints--
wrap should be a function.
wrap deve ser uma função.
```js
assert.equal(typeof wrap, 'function');
```
wrap should return a string.
wrap deve retornar uma string.
```js
assert.equal(typeof wrap('abc', 10), 'string');
```
wrap(80) should return 4 lines.
wrap(80) deve retornar 4 linhas.
```js
assert(wrapped80.split('\n').length === 4);
```
Your `wrap` function should return our expected text.
Sua função `wrap` deve retornar nosso texto esperado.
```js
assert.equal(wrapped80.split('\n')[0], firstRow80);
```
wrap(42) should return 7 lines.
wrap(42) deve retornar 7 linhas.
```js
assert(wrapped42.split('\n').length === 7);
```
Your `wrap` function should return our expected text.
A função `wrap` deve retornar nosso texto esperado.
```js
assert.equal(wrapped42.split('\n')[0], firstRow42);