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

Translate "Toolkit" into Russian #3167

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions _includes/_markdown/_ru/install-cask.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{% altDetails require-info-box 'Установка Cask' %}

{% tabs cask-install class=tabs-build-tool %}

{% tab 'Scala CLI' %}

Вы можете объявить зависимость от Cask с помощью следующей директивы `using`:

```scala
//> using dep com.lihaoyi::cask::0.10.2
```

{% endtab %}

{% tab 'sbt' %}

В файле `build.sbt` вы можете добавить зависимость от Cask:

```scala
lazy val example = project.in(file("example"))
.settings(
scalaVersion := "3.4.2",
libraryDependencies += "com.lihaoyi" %% "cask" % "0.10.2",
fork := true
)
```

{% endtab %}

{% tab 'Mill' %}

В файле `build.sc` вы можете добавить зависимость от Cask:

```scala
object example extends RootModule with ScalaModule {
def scalaVersion = "3.4.2"
def ivyDeps = Agg(
ivy"com.lihaoyi::cask::0.10.2"
)
}
```
{% endtab %}

{% endtabs %}
{% endaltDetails %}
68 changes: 68 additions & 0 deletions _includes/_markdown/_ru/install-munit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{% altDetails install-info-box 'Установка MUnit' %}

{% tabs munit-unit-test-1 class=tabs-build-tool %}
{% tab 'Scala CLI' %}

Вы можете запросить весь набор инструментов одной командой:

```scala
//> using toolkit latest
```

MUnit, будучи тестовым фреймворком, доступен только в тестовых файлах:
файлах в каталоге `test` или тех, которые имеют расширение `.test.scala`.
Подробнее о тестовой области (test scope) см. [в документации Scala CLI](https://scala-cli.virtuslab.org/docs/commands/test/).

В качестве альтернативы вы можете запросить только определенную версию MUnit:

```scala
//> using dep org.scalameta::munit:1.1.0
```

{% endtab %}

{% tab 'sbt' %}

В файле `build.sbt` вы можете добавить зависимость от toolkit-test:

```scala
lazy val example = project.in(file("."))
.settings(
scalaVersion := "3.4.2",
libraryDependencies += "org.scala-lang" %% "toolkit-test" % "0.7.0" % Test
)
```

Здесь конфигурация `Test` означает, что зависимость используется только исходными файлами в `src/test`.

В качестве альтернативы вы можете запросить только определенную версию MUnit:

```scala
libraryDependencies += "org.scalameta" %% "munit" % "1.1.0" % Test
```
{% endtab %}

{% tab 'Mill' %}

В файле `build.sc` вы можете добавить объект `test`, расширяющий `Tests` и `TestModule.Munit`:

```scala
object example extends ScalaModule {
def scalaVersion = "3.4.2"
object test extends Tests with TestModule.Munit {
def ivyDeps =
Agg(
ivy"org.scala-lang::toolkit-test:0.7.0"
)
}
}
```

В качестве альтернативы вы можете запросить только определенную версию MUnit:

```scala
ivy"org.scalameta::munit:1.1.0"
```
{% endtab %}
{% endtabs %}
{% endaltDetails %}
64 changes: 64 additions & 0 deletions _includes/_markdown/_ru/install-os-lib.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{% altDetails require-info-box 'Установка OS-Lib' %}

{% tabs oslib-install class=tabs-build-tool %}

{% tab 'Scala CLI' %}

Вы можете запросить весь набор инструментов одной командой:

```scala
//> using toolkit latest
```

В качестве альтернативы вы можете запросить только определенную версию OS-Lib:

```scala
//> using dep com.lihaoyi::os-lib:0.11.3
```

{% endtab %}

{% tab 'sbt' %}

В файле `build.sbt` вы можете добавить зависимость от `toolkit`:

```scala
lazy val example = project.in(file("."))
.settings(
scalaVersion := "3.4.2",
libraryDependencies += "org.scala-lang" %% "toolkit" % "0.7.0"
)
```

В качестве альтернативы вы можете запросить только определенную версию OS-Lib:

```scala
libraryDependencies += "com.lihaoyi" %% "os-lib" % "0.11.3"
```

{% endtab %}

{% tab 'Mill' %}

В файле `build.sc` вы можете добавить зависимость от `toolkit`:

```scala
object example extends ScalaModule {
def scalaVersion = "3.4.2"
def ivyDeps =
Agg(
ivy"org.scala-lang::toolkit:0.7.0"
)
}
```

В качестве альтернативы вы можете запросить только определенную версию OS-Lib:

```scala
ivy"com.lihaoyi::os-lib:0.11.3"
```

{% endtab %}

{% endtabs %}
{% endaltDetails %}
64 changes: 64 additions & 0 deletions _includes/_markdown/_ru/install-sttp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@

{% altDetails install-info-box 'Установка sttp' %}

{% tabs sttp-install-methods class=tabs-build-tool%}

{% tab 'Scala CLI' %}

Вы можете запросить весь набор инструментов одной командой:

```scala
//> using toolkit latest
```

В качестве альтернативы вы можете запросить только определенную версию sttp:

```scala
//> using dep com.softwaremill.sttp.client4::core:4.0.0-RC1
```

{% endtab %}

{% tab 'sbt' %}

В файле `build.sbt` вы можете добавить зависимость от `toolkit`:

```scala
lazy val example = project.in(file("."))
.settings(
scalaVersion := "3.4.2",
libraryDependencies += "org.scala-lang" %% "toolkit" % "0.7.0"
)
```

В качестве альтернативы вы можете запросить только определенную версию sttp:

```scala
libraryDependencies += "com.softwaremill.sttp.client4" %% "core" % "4.0.0-RC1"
```

{% endtab %}

{% tab 'Mill' %}

В файле `build.sc` вы можете добавить зависимость от `toolkit`:

```scala
object example extends ScalaModule {
def scalaVersion = "3.4.2"
def ivyDeps =
Agg(
ivy"org.scala-lang::toolkit:0.7.0"
)
}
```

В качестве альтернативы вы можете запросить только определенную версию sttp:

```scala
ivy"com.softwaremill.sttp.client4::core:4.0.0-RC1"
```

{% endtab %}
{% endtabs %}
{% endaltDetails %}
64 changes: 64 additions & 0 deletions _includes/_markdown/_ru/install-upickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@

{% altDetails install-info-box 'Установка upickle' %}

{% tabs upickle-install-methods class=tabs-build-tool %}

{% tab 'Scala CLI' %}

Вы можете запросить весь набор инструментов одной командой:

```scala
//> using toolkit latest
```

В качестве альтернативы вы можете запросить только определенную версию UPickle:

```scala
//> using dep com.lihaoyi::upickle:4.1.0
```

{% endtab %}

{% tab 'sbt' %}

В файле `build.sbt` вы можете добавить зависимость от `toolkit`:

```scala
lazy val example = project.in(file("."))
.settings(
scalaVersion := "3.4.2",
libraryDependencies += "org.scala-lang" %% "toolkit" % "0.7.0"
)
```

В качестве альтернативы вы можете запросить только определенную версию UPickle:

```scala
libraryDependencies += "com.lihaoyi" %% "upickle" % "4.1.0"
```

{% endtab %}

{% tab 'Mill' %}

В файле `build.sc` вы можете добавить зависимость от `toolkit`:

```scala
object example extends ScalaModule {
def scalaVersion = "3.4.2"
def ivyDeps =
Agg(
ivy"org.scala-lang::toolkit:0.7.0"
)
}
```

В качестве альтернативы вы можете запросить только определенную версию UPickle:

```scala
ivy"com.lihaoyi::upickle:4.1.0"
```

{% endtab %}
{% endtabs %}
{% endaltDetails %}
1 change: 1 addition & 0 deletions _overviews/toolkit/http-client-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Sending HTTP requests with sttp
type: chapter
description: The introduction of the sttp library
num: 23
languages: [ru]
previous-page: json-what-else
next-page: http-client-request
---
Expand Down
1 change: 1 addition & 0 deletions _overviews/toolkit/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Introduction
type: chapter
description: Introducing the Scala Toolkit tutorials
num: 1
languages: [ru]
previous-page:
next-page: testing-intro
toolkit-index:
Expand Down
1 change: 1 addition & 0 deletions _overviews/toolkit/json-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Handling JSON with uPickle
type: chapter
description: Description of the uPickle library.
num: 16
languages: [ru]
previous-page: os-what-else
next-page: json-parse
---
Expand Down
1 change: 1 addition & 0 deletions _overviews/toolkit/os-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Working with files and processes with OS-Lib
type: chapter
description: The introduction of the OS-lib library
num: 10
languages: [ru]
previous-page: testing-what-else
next-page: os-read-directory
---
Expand Down
1 change: 1 addition & 0 deletions _overviews/toolkit/testing-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Testing with MUnit
type: chapter
description: The introduction of the MUnit library
num: 2
languages: [ru]
previous-page: introduction
next-page: testing-suite
---
Expand Down
1 change: 1 addition & 0 deletions _overviews/toolkit/web-server-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Building web servers with Cask
type: chapter
description: The introduction of the Cask library
num: 30
languages: [ru]
previous-page: http-client-what-else
next-page: web-server-static
---
Expand Down
36 changes: 36 additions & 0 deletions _ru/toolkit/OrderedListOfMdFiles
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
introduction.md
testing-intro.md
testing-suite.md
testing-run.md
testing-run-only.md
testing-exceptions.md
testing-asynchronous.md
testing-resources.md
testing-what-else.md
os-intro.md
os-read-directory.md
os-read-file.md
os-write-file.md
os-run-process.md
os-what-else.md
json-intro.md
json-parse.md
json-modify.md
json-deserialize.md
json-serialize.md
json-files.md
json-what-else.md
http-client-intro.md
http-client-request.md
http-client-uris.md
http-client-request-body.md
http-client-json.md
http-client-upload-file.md
http-client-what-else.md
web-server-intro.md
web-server-static.md
web-server-dynamic.md
web-server-query-parameters.md
web-server-input.md
web-server-websockets.md
web-server-cookies-and-decorators.md
Loading
Loading