Skip to content

Commit 9b25b25

Browse files
authored
fix: fix typos in the SvelteKit guides (feature-sliced#737)
1 parent 39ae10f commit 9b25b25

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

i18n/en/docusaurus-plugin-content-docs/current/guides/tech/with-nuxtjs.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Thus, the file structure will look like this:
6666
│ │ │ │ ├── home-page.vue
6767
│ │ │ ├── index.ts
6868
```
69-
Finally, let's add a root to the config:
69+
Finally, let's add a route to the config:
7070

7171
```ts title="app/router.config.ts"
7272
import type { RouterConfig } from '@nuxt/schema'
@@ -111,8 +111,8 @@ Now, you can create routes for pages within `app` and connect pages from `pages`
111111

112112
For example, to add a `Home` page to your project, you need to do the following steps:
113113
- Add a page slice inside the `pages` layer
114-
- Add the corresponding root inside the `app` layer
115-
- Align the page from the slice with the root
114+
- Add the corresponding route inside the `app` layer
115+
- Connect the page from the slice with the route
116116

117117
To create a page slice, let's use the [CLI](https://github.com/feature-sliced/cli):
118118

@@ -126,7 +126,7 @@ Create a ``home-page.vue`` file inside the ui segment, access it using the Publi
126126
export { default as HomePage } from './ui/home-page';
127127
```
128128

129-
Create a root for this page inside the `app` layer:
129+
Create a route for this page inside the `app` layer:
130130

131131
```sh
132132

i18n/en/docusaurus-plugin-content-docs/current/guides/tech/with-sveltekit.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ Thus, your file structure should look like this:
4444
│ ├── app
4545
│ │ ├── index.html
4646
│ │ ├── routes
47-
│ ├── pages # Папка pages, закреплённая за FSD
47+
│ ├── pages # FSD Pages folder
4848
```
4949

50-
Now, you can create roots for pages within `app` and connect pages from `pages` to them.
50+
Now, you can create routes for pages within `app` and connect pages from `pages` to them.
5151

5252
For example, to add a home page to your project, you need to do the following steps:
5353
- Add a page slice inside the `pages` layer
@@ -60,13 +60,13 @@ To create a page slice, let's use the [CLI](https://github.com/feature-sliced/cl
6060
fsd pages home
6161
```
6262

63-
Create a ``home-page.vue`` file inside the ui segment, access it using the Public API
63+
Create a ``home-page.svelte`` file inside the ui segment, access it using the Public API
6464

6565
```ts title="src/pages/home/index.ts"
66-
export { default as HomePage } from './ui/home-page';
66+
export { default as HomePage } from './ui/home-page.svelte';
6767
```
6868

69-
Create a root for this page inside the `app` layer:
69+
Create a route for this page inside the `app` layer:
7070

7171
```sh
7272

@@ -82,7 +82,7 @@ Create a root for this page inside the `app` layer:
8282
│ │ │ ├── index.ts
8383
```
8484

85-
Add your page component inside the `index.svelte` file:
85+
Add your page component inside the `+page.svelte` file:
8686

8787
```html title="src/app/routes/+page.svelte"
8888
<script>

i18n/ru/docusaurus-plugin-content-docs/current/guides/tech/with-sveltekit.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ export default config;
6060
fsd pages home
6161
```
6262

63-
Создайте файл `home-page.vue` внутри сегмента ui, откройте к нему доступ с помощью Public API
63+
Создайте файл `home-page.svelte` внутри сегмента ui, откройте к нему доступ с помощью Public API
6464

6565
```ts title="src/pages/home/index.ts"
66-
export { default as HomePage } from './ui/home-page';
66+
export { default as HomePage } from './ui/home-page.svelte';
6767
```
6868

6969
Создайте роут для этой страницы внутри слоя `app`:
@@ -82,7 +82,7 @@ export { default as HomePage } from './ui/home-page';
8282
│ │ │ ├── index.ts
8383
```
8484

85-
Добавьте внутрь `index.svelte` файла компонент вашей страницы:
85+
Добавьте внутрь `+page.svelte` файла компонент вашей страницы:
8686

8787
```html title="src/app/routes/+page.svelte"
8888
<script>

0 commit comments

Comments
 (0)