diff --git a/docs/2.guide/3.going-further/1.internals.md b/docs/2.guide/3.going-further/1.internals.md index 72dbcaa9d466..673f90a0b0f6 100644 --- a/docs/2.guide/3.going-further/1.internals.md +++ b/docs/2.guide/3.going-further/1.internals.md @@ -1,54 +1,51 @@ --- -title: "How Nuxt Works?" -description: "Nuxt is a minimal but highly customizable framework to build web applications." +title: "Как работает Nuxt?" +description: "Nuxt - это минималистичный, но легко настраиваемый фреймворк для создания веб-приложений." --- -This guide helps you better understand Nuxt internals to develop new solutions and module integrations on top of Nuxt. +Это руководство поможет вам лучше понять внутреннее устройство Nuxt для разработки новых решений и интеграции модулей поверх Nuxt. -## The Nuxt Interface +## Интерфейс Nuxt -When you start Nuxt in development mode with [`nuxi dev`](/docs/api/commands/dev) or building a production application with [`nuxi build`](/docs/api/commands/build), -a common context will be created, referred to as `nuxt` internally. It holds normalized options merged with `nuxt.config` file, -some internal state, and a powerful [hooking system](/docs/api/advanced/hooks) powered by [unjs/hookable](https://github.com/unjs/hookable) -allowing different components to communicate with each other. You can think of it as **Builder Core**. +Когда вы запускаете Nuxt в режиме разработки с помощью [`nuxi dev`](/docs/api/commands/dev) или создаете продакшен приложение с помощью [`nuxi build`](/docs/api/commands/build), будет создан общий контекст, который внутренне называется `nuxt`. Он содержит нормализованные опции, объединенные с файлом `nuxt.config`, некоторое внутреннее состояние и мощную [систему хуков](/docs/api/advanced/hooks) на основе [unjs/hookable](https://github.com/unjs/hookable), позволяющих различным компонентам взаимодействовать друг с другом. Можно считать, что это **Ядро Сборщика**. -This context is globally available to be used with [Nuxt Kit](/docs/guide/going-further/kit) composables. -Therefore only one instance of Nuxt is allowed to run per process. +Этот контекст глобально доступен для использования с композаблами [Nuxt Kit](/docs/guide/going-further/kit). +Поэтому в каждом процессе может быть запущен только один инстанс Nuxt. -To extend the Nuxt interface and hook into different stages of the build process, we can use [Nuxt Modules](/docs/guide/going-further/modules). +Чтобы расширить интерфейс Nuxt и подключиться к различным этапам процесса сборки, мы можем использовать [Nuxt-модули](/docs/guide/going-further/modules). -For more details, check out [the source code](https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/core/nuxt.ts). +Для получения более подробной информации ознакомьтесь с [исходным кодом](https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/core/nuxt.ts). -## The NuxtApp Interface +## Интерфейс NuxtApp -When rendering a page in the browser or on the server, a shared context will be created, referred to as `nuxtApp`. -This context keeps vue instance, runtime hooks, and internal states like ssrContext and payload for hydration. -You can think of it as **Runtime Core**. +При рендере страницы в браузере или на сервере будет создан общий контекст, называемый `nuxtApp`. +В этом контексте хранятся инстанс vue, runtime хуки, а также внутренние состояния, такие как ssrContext и payload для гидратации. +Можно считать, что это **Runtime ядро**. -This context can be accessed using [`useNuxtApp()`](/docs/api/composables/use-nuxt-app) composable within Nuxt plugins and `