Skip to content

Commit

Permalink
Merge pull request #196 from moleculerjs/l10n_master
Browse files Browse the repository at this point in the history
New Crowdin updates
  • Loading branch information
icebob authored Jul 11, 2023
2 parents 91f6f84 + b62d685 commit bc53902
Show file tree
Hide file tree
Showing 26 changed files with 480 additions and 320 deletions.
4 changes: 2 additions & 2 deletions source/de/docs/0.14/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ const broker = new ServiceBroker({
// set Time-to-live to 30sec.
ttl: 30,
// Turns Redis client monitoring on.
monitor: false
monitor: false,
// Redis settings
redis: {
host: "redis-server",
Expand Down Expand Up @@ -674,4 +674,4 @@ const MyCacher = require("./my-cacher");
const broker = new ServiceBroker({
cacher: new MyCacher()
});
```
```
4 changes: 2 additions & 2 deletions source/de/docs/0.14/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Now, assuming that our services are up and running, the online store can serve u
All the details that we've just seen might seem scary and complicated but you don't need to be afraid. Moleculer does all the heavy lifting for you! You (the developer) only need to focus on the application logic. Take a look at the actual [implementation](#Implementation) of our online store.

### Implementation
Now that we've defined the architecture of our shop, let's implement it. We're going to use NATS, an open source messaging system, as a communication bus. So go ahead and get the latest version of [NATS Server](https://nats.io/download/nats-io/nats-server/). Run it with the default settings. You should get the following message:
Now that we've defined the architecture of our shop, let's implement it. We're going to use NATS, an open source messaging system, as a communication bus. So go ahead and get the latest version of [NATS Server](https://docs.nats.io/running-a-nats-service/introduction/installation). Run it with the default settings. You should get the following message:

```
[18141] 2016/10/31 13:13:40.732616 [INF] Starting nats-server version 0.9.4
Expand Down Expand Up @@ -137,4 +137,4 @@ Now run `node index.js` in your terminal and open the link [`http://localhost:30

With just a couple dozen of lines of code we've created 2 isolated services capable of serving user's requests and list the products. Moreover, our services can be easily scaled to become resilient and fault-tolerant. Impressive, right?

Head out to the [Documentation](broker.html) section for more details or check the [Examples](examples.html) page for more complex examples.
Head out to the [Documentation](broker.html) section for more details or check the [Examples](examples.html) page for more complex examples.
3 changes: 1 addition & 2 deletions source/de/docs/0.14/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $ npm run demo middlewares
[Source code is available on Github](https://github.com/moleculerjs/moleculer/blob/master/examples/middlewares/index.js)

### Runner
This example shows how you can start a broker and load services with [Moleculer Runner](moleculer-runner.html).
This example shows how you can start a broker and load services with [Moleculer Runner](./runner.html)

```bash
$ node ./bin/moleculer-runner.js -c examples/runner/moleculer.config.js -r examples/user.service.js
Expand All @@ -95,4 +95,3 @@ $ node examples/loadtest/clients
```

[Source code is available on Github](https://github.com/moleculerjs/moleculer/blob/master/examples/loadtest)

33 changes: 33 additions & 0 deletions source/de/docs/0.14/moleculer-db.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,39 @@ All DB adapters share a common set of settings:
`idField` does not work with Sequelize adapter as you can freely set your own ID while creating the model.
{% endnote %}

## Customization

As with all mixins, the standard [merge algorithm](services.html#Merge-algorithm) allows you to override the defaults applied by this mixin. For example to disable an action you can set the action to `false` in your service.

**Example**
```js
"use strict";
const { ServiceBroker } = require("moleculer");
const DbService = require("moleculer-db");

const broker = new ServiceBroker();

broker.createService({
name: "db-with-hooks",

// Load DB actions
mixins: [DbService],

actions: {
// Disable remove action
remove: false,
// Make create and insert public instead of published
create: {
visibility: "public",
},
insert: {
visibility: "public",
}

}
});
```

## Actions

DB adapters also implement CRUD operations. These [actions](actions.html) are [`published`](actions.html#Action-visibility) methods and can be called by other services.
Expand Down
4 changes: 2 additions & 2 deletions source/hu/docs/0.14/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ const broker = new ServiceBroker({
// set Time-to-live to 30sec.
ttl: 30,
// Turns Redis client monitoring on.
monitor: false
monitor: false,
// Redis settings
redis: {
host: "redis-server",
Expand Down Expand Up @@ -674,4 +674,4 @@ const MyCacher = require("./my-cacher");
const broker = new ServiceBroker({
cacher: new MyCacher()
});
```
```
4 changes: 2 additions & 2 deletions source/hu/docs/0.14/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Feltételezve, hogy a szolgáltatásaink működnek, az online áruház kiszolg
All the details that we've just seen might seem scary and complicated but you don't need to be afraid. Moleculer does all the heavy lifting for you! You (the developer) only need to focus on the application logic. Take a look at the actual [implementation](#Implementation) of our online store.

### Implementation
Now that we've defined the architecture of our shop, let's implement it. We're going to use NATS, an open source messaging system, as a communication bus. So go ahead and get the latest version of [NATS Server](https://nats.io/download/nats-io/nats-server/). Run it with the default settings. You should get the following message:
Now that we've defined the architecture of our shop, let's implement it. We're going to use NATS, an open source messaging system, as a communication bus. So go ahead and get the latest version of [NATS Server](https://docs.nats.io/running-a-nats-service/introduction/installation). Run it with the default settings. You should get the following message:

```
[18141] 2016/10/31 13:13:40.732616 [INF] Starting nats-server version 0.9.4
Expand Down Expand Up @@ -137,4 +137,4 @@ Now run `node index.js` in your terminal and open the link [`http://localhost:30

With just a couple dozen of lines of code we've created 2 isolated services capable of serving user's requests and list the products. Moreover, our services can be easily scaled to become resilient and fault-tolerant. Impressive, right?

Head out to the [Documentation](broker.html) section for more details or check the [Examples](examples.html) page for more complex examples.
Head out to the [Documentation](broker.html) section for more details or check the [Examples](examples.html) page for more complex examples.
3 changes: 1 addition & 2 deletions source/hu/docs/0.14/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $ npm run demo middlewares
[Source code is available on Github](https://github.com/moleculerjs/moleculer/blob/master/examples/middlewares/index.js)

### Runner
This example shows how you can start a broker and load services with [Moleculer Runner](moleculer-runner.html).
This example shows how you can start a broker and load services with [Moleculer Runner](./runner.html)

```bash
$ node ./bin/moleculer-runner.js -c examples/runner/moleculer.config.js -r examples/user.service.js
Expand All @@ -95,4 +95,3 @@ $ node examples/loadtest/clients
```

[Source code is available on Github](https://github.com/moleculerjs/moleculer/blob/master/examples/loadtest)

33 changes: 33 additions & 0 deletions source/hu/docs/0.14/moleculer-db.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,39 @@ All DB adapters share a common set of settings:
`idField` does not work with Sequelize adapter as you can freely set your own ID while creating the model.
{% endnote %}

## Customization

As with all mixins, the standard [merge algorithm](services.html#Merge-algorithm) allows you to override the defaults applied by this mixin. For example to disable an action you can set the action to `false` in your service.

**Example**
```js
"use strict";
const { ServiceBroker } = require("moleculer");
const DbService = require("moleculer-db");

const broker = new ServiceBroker();

broker.createService({
name: "db-with-hooks",

// Load DB actions
mixins: [DbService],

actions: {
// Disable remove action
remove: false,
// Make create and insert public instead of published
create: {
visibility: "public",
},
insert: {
visibility: "public",
}

}
});
```

## Akciók

DB adapters also implement CRUD operations. These [actions](actions.html) are [`published`](actions.html#Action-visibility) methods and can be called by other services.
Expand Down
4 changes: 2 additions & 2 deletions source/pt/docs/0.14/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ const broker = new ServiceBroker({
// set Time-to-live to 30sec.
ttl: 30,
// Turns Redis client monitoring on.
monitor: false
monitor: false,
// Redis settings
redis: {
host: "redis-server",
Expand Down Expand Up @@ -674,4 +674,4 @@ const MyCacher = require("./my-cacher");
const broker = new ServiceBroker({
cacher: new MyCacher()
});
```
```
4 changes: 2 additions & 2 deletions source/pt/docs/0.14/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Agora, assumindo que nossos serviços estão prontos e funcionando, a loja on-li
Todos os detalhes que acabamos de ver podem parecer assustadores e complicados, mas você não precisa ter medo. Moleculer faz todo o trabalho pesado para você! Você (o desenvolvedor) só precisa se concentrar na regra de negócio. Dê uma olhada na implementação real da nossa [loja online](#Implementation).

### Implementação
Agora que definimos a arquitetura da nossa loja, vamos implementá-la. Vamos usar o NATS, um sistema de mensagens de código aberto, como protocolo de comunicação. Então vá em frente e obtenha a última versão do [Servidor NATS](https://nats.io/download/nats-io/nats-server/). Execute-o com as configurações padrão. Você deve receber a seguinte mensagem:
Agora que definimos a arquitetura da nossa loja, vamos implementá-la. Vamos usar o NATS, um sistema de mensagens de código aberto, como protocolo de comunicação. So go ahead and get the latest version of [NATS Server](https://docs.nats.io/running-a-nats-service/introduction/installation). Execute-o com as configurações padrão. Você deve receber a seguinte mensagem:

```
[18141] 2016/10/31 13:13:40.732616 [INF] Starting nats-server version 0.9.4
Expand Down Expand Up @@ -137,4 +137,4 @@ Agora execute `node index.js` no seu terminal e abra o link [`http://localhost:3

Com apenas algumas dezenas de linhas de código, criamos dois serviços isolados capazes de atender as requisições do usuário e listar os produtos. Além disso, os nossos serviços podem ser facilmente escalonados para se tornarem resilientes e tolerantes e falhas. Impressionante, verdade?

Vá até a seção [Documentação](broker.html) para mais detalhes ou verifique a página [Exemplos](examples.html) para exemplos mais complexos.
Vá até a seção [Documentação](broker.html) para mais detalhes ou verifique a página [Exemplos](examples.html) para exemplos mais complexos.
3 changes: 1 addition & 2 deletions source/pt/docs/0.14/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $ npm run demo middlewares
[O código fonte está disponível no Github](https://github.com/moleculerjs/moleculer/blob/master/examples/middlewares/index.js)

### Runner
Este exemplo mostra como você pode iniciar um broker e carregar serviços com [Moleculer Runner](moleculer-runner.html).
This example shows how you can start a broker and load services with [Moleculer Runner](./runner.html)

```bash
$ node ./bin/moleculer-runner.js -c examples/runner/moleculer.config.js -r examples/user.service.js
Expand All @@ -95,4 +95,3 @@ $ node examples/loadtest/clients
```

[O código fonte está disponível no Github](https://github.com/moleculerjs/moleculer/blob/master/examples/loadtest)

35 changes: 34 additions & 1 deletion source/pt/docs/0.14/moleculer-db.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,39 @@ Todos os adaptadores de banco de dados compartilham um conjunto comum de configu
`idField` não funciona com o adaptador de Sequelize, pois você pode definir livremente seu próprio ID durante a criação do modelo.
{% endnote %}

## Personalização

Como em todos os mixins, o algoritmo de mesclagem padrão [](services.html#Merge-algorithm) permite que você substitua os padrões aplicados por este mixin. Por exemplo, para desativar uma ação, você pode definir a ação para `false` em seu serviço.

**Exemplo**
```js
"use strict";
const { ServiceBroker } = require("moleculer");
const DbService = require("moleculer-db");

const broker = new ServiceBroker();

broker.createService({
name: "db-with-hooks",

// Load DB actions
mixins: [DbService],

actions: {
// Disable remove action
remove: false,
// Make create and insert public instead of published
create: {
visibility: "public",
},
insert: {
visibility: "public",
}

}
});
```

## Ações

Adaptadores de BD também implementam operações CRUD. Essas [ações](actions.html) são [`métodos públicos`](actions.html#Action-visibility) e podem ser chamadas por outros serviços.
Expand Down Expand Up @@ -209,7 +242,7 @@ Obter entidade por ID.
| `mapping` | `Boolean` | - | Converta o `Array` retornado para `Objet` onde a chave é o valor de `id`. |

#### Resultados
**Tipo:** `Object`, `Array.<Object>` - Entidade(s) encontrada(s).
**Tipo:** `Objet`, `Array.<Object>` - Entidade(s) encontrada(s).


### `update`
Expand Down
6 changes: 3 additions & 3 deletions source/ru/docs/0.14/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,8 @@ const broker = new ServiceBroker({
// установить время жизни равное 30 сек.
ttl: 30,
// Включает мониторинг Redis клиента.
monitor: false
// настройки Redis
monitor: false,
// Redis settings
redis: {
host: "redis-server",
port: 6379,
Expand Down Expand Up @@ -675,4 +675,4 @@ const MyCacher = require("./my-cacher");
const broker = new ServiceBroker({
cacher: new MyCacher()
});
```
```
4 changes: 2 additions & 2 deletions source/ru/docs/0.14/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ title: Основные принципы
Все детали, которые мы только что увидели, могут показаться пугающими и сложными, но вам не нужно бояться. Moleculer делает все тяжелые приёмы за Вас! Вам (разработчику) нужно сосредоточиться только на логике приложения. Посмотрите на [реализацию](#Implementation) нашего интернет-магазина.

### Реализация
Теперь, когда мы определили архитектуру нашего магазина, давайте его сделаем. Мы будем использовать NATS, систему обмена сообщениями с открытым исходным кодом, в качестве шины для коммуникаций. Так что перейдите по ссылке и получите последнюю версию [NATS сервера](https://nats.io/download/nats-io/nats-server/). Запустите с настройками по умолчанию. Вы должны получить следующее сообщение:
Теперь, когда мы определили архитектуру нашего магазина, давайте его сделаем. Мы будем использовать NATS, систему обмена сообщениями с открытым исходным кодом, в качестве шины для коммуникаций. So go ahead and get the latest version of [NATS Server](https://docs.nats.io/running-a-nats-service/introduction/installation). Запустите с настройками по умолчанию. Вы должны получить следующее сообщение:

```
[18141] 2016/10/31 13:13:40.732616 [INF] Starting nats-server version 0.9.4
Expand Down Expand Up @@ -137,4 +137,4 @@ Promise.all([brokerNode1.start(), brokerNode2.start()]);

Всего за пару десятков строк кода мы создали два изолированных сервиса, способных обслуживать запросы пользователей и выводить список товаров. Кроме того, наши сервисы легко масштабируются и отказоустойчивы. Впечатляюще, правда?

Загляните в раздел [Документация](broker.html) для получения более подробной информации или посмотрите страницу [Примеры](examples.html) для более комплексных примеров.
Загляните в раздел [Документация](broker.html) для получения более подробной информации или посмотрите страницу [Примеры](examples.html) для более комплексных примеров.
3 changes: 1 addition & 2 deletions source/ru/docs/0.14/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $ npm run demo middlewares
[Исходный код доступен на Github](https://github.com/moleculerjs/moleculer/blob/master/examples/middlewares/index.js)

### Runner
Этот пример показывает, как запустить брокер и загрузить сервисы с помощью [Moleculer Runner](moleculer-runner.html).
This example shows how you can start a broker and load services with [Moleculer Runner](./runner.html)

```bash
$ node ./bin/moleculer-runner.js -c examples/runner/moleculer.config.js -r examples/user.service.js
Expand All @@ -95,4 +95,3 @@ $ node examples/loadtest/clients
```

[Исходный код доступен на Github](https://github.com/moleculerjs/moleculer/blob/master/examples/loadtest)

33 changes: 33 additions & 0 deletions source/ru/docs/0.14/moleculer-db.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,39 @@ All DB adapters share a common set of settings:
`idField` does not work with Sequelize adapter as you can freely set your own ID while creating the model.
{% endnote %}

## Customization

As with all mixins, the standard [merge algorithm](services.html#Merge-algorithm) allows you to override the defaults applied by this mixin. For example to disable an action you can set the action to `false` in your service.

**Пример**
```js
"use strict";
const { ServiceBroker } = require("moleculer");
const DbService = require("moleculer-db");

const broker = new ServiceBroker();

broker.createService({
name: "db-with-hooks",

// Load DB actions
mixins: [DbService],

actions: {
// Disable remove action
remove: false,
// Make create and insert public instead of published
create: {
visibility: "public",
},
insert: {
visibility: "public",
}

}
});
```

## Действия

DB adapters also implement CRUD operations. These [actions](actions.html) are [`published`](actions.html#Action-visibility) methods and can be called by other services.
Expand Down
4 changes: 2 additions & 2 deletions source/zh/docs/0.14/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ const broker = new ServiceBroker({
// set Time-to-live to 30sec.
ttl: 30,
// Turns Redis client monitoring on.
monitor: false
monitor: false,
// Redis settings
redis: {
host: "redis-server",
Expand Down Expand Up @@ -674,4 +674,4 @@ const MyCacher = require("./my-cacher");
const broker = new ServiceBroker({
cacher: new MyCacher()
});
```
```
Loading

0 comments on commit bc53902

Please sign in to comment.