-
-
Notifications
You must be signed in to change notification settings - Fork 221
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 domain pages into Russian #1053
base: master
Are you sure you want to change the base?
Conversation
👷 Deploy request for effector-docs pending review.Visit the deploys page to approve it
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Спасибо за пиар 🙏
Принес несколько замечаний:
🤓 — совет / вопрос
🚧 — потенциальная проблема
🚨 — опасность / баг
Плюс, попрошу документы пропустить через какой-то спелл-чекер, чтобы избавить их от опечаток.
documentation/pnpm-lock.yaml
Outdated
settings: | ||
autoInstallPeers: true | ||
excludeLinksFromLockfile: false | ||
lockfileVersion: 5.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚨 почти уверен, что это изменение не должно быть в этом пиаре. Можем убрать изменения в этом файле из пиара?
lang: ru | ||
--- | ||
|
||
_Domain (домен)_ - это способ группировки и применения массовых обработок к юнитам. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤓 кажется, как-то не по-русски вышло — «применение массовых обработок к юнитам». Может быть, что-то типо «массовой обработки юнитов»?
|
||
_Domain (домен)_ - это способ группировки и применения массовых обработок к юнитам. | ||
|
||
Домен может подписываться на событие, эффект, стор или вложенный домен, созданный с помощью методов `onCreateEvent`, `onCreateStore`, `onCreateEffect`, `onCreateDomain`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚨 это фактическая ошибка. Домен не может никуда подписываться.
const { stores, events, domains, effects } = domain.history; | ||
``` | ||
|
||
- Когда любой из юнитов создается внутри домена, он появляется в наборе с именем типа (сторы, события, домены, эффекты) в порядке создания. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚧 кажется, то что в скобочках лучше не переводить. Это же имена полей в объекте.
|
||
### `event(name?)` | ||
|
||
Алиас для [domain.createEvent](/ru/api/effector/Domain#createevent-name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤓 не уверен, насколько «алиас» хорошо подходит для русского языка. Псевдоним?
domain.onCreateEvent((event) => {}); | ||
``` | ||
|
||
- Функция переданная в `onCreateEvent` вызывается каждый раз, когда создается новое события в `domain` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Функция переданная в `onCreateEvent` вызывается каждый раз, когда создается новое события в `domain` | |
- Функция переданная в `onCreateEvent` вызывается каждый раз, когда создается новое событие в `domain` |
```js | ||
import { createDomain } from "effector"; | ||
|
||
const domain = createDomain(); // безимянный домен |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const domain = createDomain(); // безимянный домен | |
const domain = createDomain(); // безымянный домен |
No description provided.