chore(i18n,learn): processed translations (#45165)

This commit is contained in:
camperbot
2022-02-19 12:56:08 +05:30
committed by GitHub
parent 8138a07d52
commit ba14990876
134 changed files with 1540 additions and 1511 deletions

View File

@ -1,6 +1,6 @@
---
id: 594810f028c0303b75339ad4
title: Word wrap
title: Mandare a capo
challengeType: 5
forumTopicId: 302344
dashedName: word-wrap
@ -8,11 +8,11 @@ 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.
Ancora oggi, con caratteri proporzionali e layout complessi, ci sono ancora casi in cui è necessario mandare a capo il testo in una colonna specificata. Il compito di base è quello di chiudere un paragrafo di testo in modo semplice.
# --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:
Scrivi una funzione che può mandare a capo questo testo a qualsiasi numero di caratteri. Ad esempio, il testo a capo di 80 caratteri dovrebbe assomigliare a quanto segue:
<pre>
Wrap text using a more sophisticated algorithm such as the Knuth and Plass TeX
@ -23,37 +23,37 @@ than a simple minimum length algorithm.
# --hints--
wrap should be a function.
wrap dovrebbe essere una funzione.
```js
assert.equal(typeof wrap, 'function');
```
wrap should return a string.
wrap dovrebbe restituire una stringa.
```js
assert.equal(typeof wrap('abc', 10), 'string');
```
wrap(80) should return 4 lines.
wrap(80) dovrebbe restituire 4 righe.
```js
assert(wrapped80.split('\n').length === 4);
```
Your `wrap` function should return our expected text.
La funzione `wrap` dovrebbe restituire il testo previsto.
```js
assert.equal(wrapped80.split('\n')[0], firstRow80);
```
wrap(42) should return 7 lines.
wrap(42) dovrebbe restituire 7 righe.
```js
assert(wrapped42.split('\n').length === 7);
```
Your `wrap` function should return our expected text.
La funzione `wrap` dovrebbe restituire il testo previsto.
```js
assert.equal(wrapped42.split('\n')[0], firstRow42);