Skip to content

Commit 54d89f1

Browse files
committed
feat(i18n): update translations (#1899)
1 parent 702270e commit 54d89f1

File tree

6 files changed

+45
-39
lines changed

6 files changed

+45
-39
lines changed

apps/docs/content/docs/de/blocks/loop.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Wähle zwischen vier Arten von Schleifen:
7070

7171
</Tab>
7272
<Tab>
73-
**While-Schleife (Bedingungsbasiert)** - Wird weiter ausgeführt, solange eine Bedingung als wahr ausgewertet wird:
73+
**While-Schleife (Bedingungsbasiert)** - Wird ausgeführt, solange eine Bedingung als wahr ausgewertet wird:
7474

7575
<div className="flex justify-center">
7676
<Image
@@ -82,7 +82,7 @@ Wähle zwischen vier Arten von Schleifen:
8282
/>
8383
</div>
8484

85-
Verwende diese, wenn du eine Schleife ausführen musst, bis eine bestimmte Bedingung erfüllt ist. Die Bedingung wird **vor** jeder Iteration überprüft.
85+
Verwende diese, wenn du eine Schleife benötigst, die läuft, bis eine bestimmte Bedingung erfüllt ist. Die Bedingung wird **vor** jeder Iteration überprüft.
8686

8787
```
8888
Example: While {"<variable.i>"} < 10
@@ -107,12 +107,13 @@ Wähle zwischen vier Arten von Schleifen:
107107
/>
108108
</div>
109109

110-
Verwende diese, wenn du mindestens einmal ausführen und dann eine Schleife durchlaufen musst, bis eine Bedingung erfüllt ist. Die Bedingung wird **nach** jeder Iteration überprüft.
111-
110+
Verwende diese, wenn du eine Operation mindestens einmal ausführen musst und dann die Schleife fortsetzen willst, bis eine Bedingung erfüllt ist. Die Bedingung wird **nach** jeder Iteration überprüft.
112111

113112
```
114-
Example: Do-While Loop
115-
- Execute first iteration
113+
Example: Do-while {"<variable.i>"} < 10
114+
- Execute blocks
115+
- Inside loop: Increment {"<variable.i>"}
116+
- Inside loop: Variables assigns i = {"<variable.i>"} + 1
116117
- Check condition → Continue if true
117118
- Check condition → Exit if false
118119
```

apps/docs/content/docs/es/blocks/loop.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Elige entre cuatro tipos de bucles:
8282
/>
8383
</div>
8484

85-
Úsalo cuando necesites hacer un bucle hasta que se cumpla una condición específica. La condición se comprueba **antes** de cada iteración.
85+
Úsalo cuando necesites repetir hasta que se cumpla una condición específica. La condición se verifica **antes** de cada iteración.
8686

8787
```
8888
Example: While {"<variable.i>"} < 10
@@ -107,12 +107,13 @@ Elige entre cuatro tipos de bucles:
107107
/>
108108
</div>
109109

110-
Úsalo cuando necesites ejecutar al menos una vez, luego hacer un bucle hasta que se cumpla una condición. La condición se comprueba **después** de cada iteración.
111-
110+
Úsalo cuando necesites ejecutar al menos una vez, luego repetir hasta que se cumpla una condición. La condición se verifica **después** de cada iteración.
112111

113112
```
114-
Example: Do-While Loop
115-
- Execute first iteration
113+
Example: Do-while {"<variable.i>"} < 10
114+
- Execute blocks
115+
- Inside loop: Increment {"<variable.i>"}
116+
- Inside loop: Variables assigns i = {"<variable.i>"} + 1
116117
- Check condition → Continue if true
117118
- Check condition → Exit if false
118119
```

apps/docs/content/docs/fr/blocks/loop.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Choisissez entre quatre types de boucles :
7070

7171
</Tab>
7272
<Tab>
73-
**Boucle While (Basée sur condition)** - Continue l'exécution tant qu'une condition est évaluée comme vraie :
73+
**Boucle While (Basée sur une condition)** - Continue à s'exécuter tant qu'une condition est évaluée comme vraie :
7474

7575
<div className="flex justify-center">
7676
<Image
@@ -95,7 +95,7 @@ Choisissez entre quatre types de boucles :
9595

9696
</Tab>
9797
<Tab>
98-
**Boucle Do-While (Basée sur condition)** - S'exécute au moins une fois, puis continue tant qu'une condition est vraie :
98+
**Boucle Do-While (Basée sur une condition)** - S'exécute au moins une fois, puis continue tant qu'une condition est vraie :
9999

100100
<div className="flex justify-center">
101101
<Image
@@ -109,10 +109,11 @@ Choisissez entre quatre types de boucles :
109109

110110
Utilisez cette option lorsque vous devez exécuter au moins une fois, puis boucler jusqu'à ce qu'une condition soit remplie. La condition est vérifiée **après** chaque itération.
111111

112-
113112
```
114-
Example: Do-While Loop
115-
- Execute first iteration
113+
Example: Do-while {"<variable.i>"} < 10
114+
- Execute blocks
115+
- Inside loop: Increment {"<variable.i>"}
116+
- Inside loop: Variables assigns i = {"<variable.i>"} + 1
116117
- Check condition → Continue if true
117118
- Check condition → Exit if false
118119
```

apps/docs/content/docs/ja/blocks/loop.mdx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ import { Image } from '@/components/ui/image'
7070

7171
</Tab>
7272
<Tab>
73-
**While ループ(条件ベース)** - 条件がtrueと評価される間、実行を継続します:
73+
**While ループ(条件ベース)** - 条件が真と評価される間、実行を継続します:
7474

7575
<div className="flex justify-center">
7676
<Image
@@ -95,8 +95,8 @@ import { Image } from '@/components/ui/image'
9595

9696
</Tab>
9797
<Tab>
98-
**Do-While ループ(条件ベース)** - 少なくとも1回実行し、その後条件がtrueの間継続します
99-
98+
**Do-While ループ(条件ベース)** - 少なくとも1回実行し、その後条件が真である間継続します
99+
100100
<div className="flex justify-center">
101101
<Image
102102
src="/static/blocks/loop-4.png"
@@ -106,6 +106,17 @@ import { Image } from '@/components/ui/image'
106106
className="my-6"
107107
/>
108108
</div>
109+
110+
少なくとも1回実行し、その後条件が満たされるまでループする必要がある場合に使用します。条件は各反復の**後に**チェックされます。
111+
112+
```
113+
Example: Do-while {"<variable.i>"} < 10
114+
- Execute blocks
115+
- Inside loop: Increment {"<variable.i>"}
116+
- Inside loop: Variables assigns i = {"<variable.i>"} + 1
117+
- Check condition → Continue if true
118+
- Check condition → Exit if false
119+
```
109120

110121
少なくとも1回実行し、その後条件が満たされるまでループする必要がある場合に使用します。条件は各反復の**後に**チェックされます。
111122

@@ -246,9 +257,3 @@ while (counter < items.length && !foundTarget) {
246257
</ul>
247258
</Tab>
248259
</Tabs>
249-
250-
## ベストプラクティス
251-
252-
- **適切な制限を設定する**: 実行時間が長くならないよう、反復回数を適切に保つ
253-
- **コレクションにはForEachを使用する**: 配列やオブジェクトを処理する場合、Forループの代わりにForEachを使用する
254-
- **エラーを適切に処理する**: 堅牢なワークフローのために、ループ内でのエラー処理を検討する

apps/docs/content/docs/zh/blocks/loop.mdx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,13 @@ import { Image } from '@/components/ui/image'
8282
/>
8383
</div>
8484

85-
当需要循环直到满足特定条件时使用此方法。条件在每次迭代**之前**检查。
86-
85+
当需要循环直到满足特定条件时使用此方法。条件在每次迭代的**之前**进行检查。
8786

8887
```
89-
Example: While <variable.i> < 10
88+
Example: While {"<variable.i>"} < 10
9089
- Check condition → Execute if true
91-
- Inside loop: Increment <variable.i>
92-
- Inside loop: Variables assigns i = <variable.i> + 1
90+
- Inside loop: Increment {"<variable.i>"}
91+
- Inside loop: Variables assigns i = {"<variable.i>"} + 1
9392
- Check condition → Execute if true
9493
- Check condition → Exit if false
9594
```
@@ -108,14 +107,13 @@ import { Image } from '@/components/ui/image'
108107
/>
109108
</div>
110109

111-
当需要至少执行一次,然后循环直到满足条件时使用此方法。条件在每次迭代**之后**检查。
112-
110+
当需要至少执行一次,然后循环直到满足条件时使用此方法。条件在每次迭代的**之后**进行检查。
113111

114112
```
115-
Example: Do-while <variable.i> < 10
113+
Example: Do-while {"<variable.i>"} < 10
116114
- Execute blocks
117-
- Inside loop: Increment <variable.i>
118-
- Inside loop: Variables assigns i = <variable.i> + 1
115+
- Inside loop: Increment {"<variable.i>"}
116+
- Inside loop: Variables assigns i = {"<variable.i>"} + 1
119117
- Check condition → Continue if true
120118
- Check condition → Exit if false
121119
```

apps/docs/i18n.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4898,10 +4898,10 @@ checksums:
48984898
content/7: 9d70f66d1a9451ed3eca4a736f16a25b
48994899
content/8: 0a512adcf936e341d82edf37bdabaf67
49004900
content/9: 84099eb0c2a3d63fbce666ed70737c1a
4901-
content/10: ac9cd91daa3c1394b1cbb566e4bf9424
4902-
content/11: 395c4ae0f314e84860c80f05cd46417f
4903-
content/12: 54d261587ec0bc6e4ec97668b5a8f109
4904-
content/13: 04593f5a99891adb9e221b1f6909b920
4901+
content/10: 99d7789e46de7a37077988c8c4cc0ca7
4902+
content/11: 23a43886e2c86080b7d271f38e3bc94a
4903+
content/12: b5eebc8b4aaf6d14f4d0248a23d8aba8
4904+
content/13: d60dc416b80516da03739f06df0abff8
49054905
content/14: 3304a33dfb626c6e2267c062e8956a9d
49064906
content/15: b55a33d2662babda7b0601dce90d70c3
49074907
content/16: 2b707960797476b5fa8e135995c6b92c

0 commit comments

Comments
 (0)