Skip to content

Commit ac38775

Browse files
author
hywax
committed
docs: apply script style
1 parent ca4b6c3 commit ac38775

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

Diff for: docs/community/development.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ html.new-theme {
123123
::: code-group
124124
```typescript [types/config.d.ts]
125125
export interface Config {
126-
title?: string
127-
lang: 'en' | 'ru'
128-
theme?: 'system' | 'light' | 'dark' | 'deep' | 'new-theme' // [!code focus]
129-
services: ServicesGroup[]
130-
checkUpdates: boolean
126+
title?: string
127+
lang: 'en' | 'ru'
128+
theme?: 'system' | 'light' | 'dark' | 'deep' | 'new-theme' // [!code focus]
129+
services: ServicesGroup[]
130+
checkUpdates: boolean
131131
}
132132
```
133133
:::
@@ -153,16 +153,16 @@ After creating the language file, you need to plug it into `nuxt.config.ts`
153153

154154
```typescript
155155
export default defineNuxtConfig({
156-
i18n: {
157-
locales: [
158-
{ // [!code focus]
159-
code: 'en', // [!code focus]
160-
iso: 'en-US', // [!code focus]
161-
name: 'English', // [!code focus]
162-
file: 'en-US.json', // [!code focus]
163-
}, // [!code focus]
164-
],
165-
},
156+
i18n: {
157+
locales: [
158+
{ // [!code focus]
159+
code: 'en', // [!code focus]
160+
iso: 'en-US', // [!code focus]
161+
name: 'English', // [!code focus]
162+
file: 'en-US.json', // [!code focus]
163+
}, // [!code focus]
164+
],
165+
},
166166
})
167167
```
168168

Diff for: docs/ru/community/development.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ html.new-theme {
123123
::: code-group
124124
```typescript [types/config.d.ts]
125125
export interface Config {
126-
title?: string
127-
lang: 'en' | 'ru'
128-
theme?: 'system' | 'light' | 'dark' | 'deep' | 'new-theme' // [!code focus]
129-
services: ServicesGroup[]
130-
checkUpdates: boolean
126+
title?: string
127+
lang: 'en' | 'ru'
128+
theme?: 'system' | 'light' | 'dark' | 'deep' | 'new-theme' // [!code focus]
129+
services: ServicesGroup[]
130+
checkUpdates: boolean
131131
}
132132
```
133133
:::
@@ -153,16 +153,16 @@ export interface Config {
153153

154154
```typescript
155155
export default defineNuxtConfig({
156-
i18n: {
157-
locales: [
158-
{ // [!code focus]
159-
code: 'en', // [!code focus]
160-
iso: 'en-US', // [!code focus]
161-
name: 'English', // [!code focus]
162-
file: 'en-US.json', // [!code focus]
163-
}, // [!code focus]
164-
],
165-
},
156+
i18n: {
157+
locales: [
158+
{ // [!code focus]
159+
code: 'en', // [!code focus]
160+
iso: 'en-US', // [!code focus]
161+
name: 'English', // [!code focus]
162+
file: 'en-US.json', // [!code focus]
163+
}, // [!code focus]
164+
],
165+
},
166166
})
167167
```
168168

0 commit comments

Comments
 (0)