Skip to content

Commit

Permalink
docs: apply script style
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed May 21, 2024
1 parent ca4b6c3 commit ac38775
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
30 changes: 15 additions & 15 deletions docs/community/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ html.new-theme {
::: code-group
```typescript [types/config.d.ts]
export interface Config {
title?: string
lang: 'en' | 'ru'
theme?: 'system' | 'light' | 'dark' | 'deep' | 'new-theme' // [!code focus]
services: ServicesGroup[]
checkUpdates: boolean
title?: string
lang: 'en' | 'ru'
theme?: 'system' | 'light' | 'dark' | 'deep' | 'new-theme' // [!code focus]
services: ServicesGroup[]
checkUpdates: boolean
}
```
:::
Expand All @@ -153,16 +153,16 @@ After creating the language file, you need to plug it into `nuxt.config.ts`

```typescript
export default defineNuxtConfig({
i18n: {
locales: [
{ // [!code focus]
code: 'en', // [!code focus]
iso: 'en-US', // [!code focus]
name: 'English', // [!code focus]
file: 'en-US.json', // [!code focus]
}, // [!code focus]
],
},
i18n: {
locales: [
{ // [!code focus]
code: 'en', // [!code focus]
iso: 'en-US', // [!code focus]
name: 'English', // [!code focus]
file: 'en-US.json', // [!code focus]
}, // [!code focus]
],
},
})
```

Expand Down
30 changes: 15 additions & 15 deletions docs/ru/community/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ html.new-theme {
::: code-group
```typescript [types/config.d.ts]
export interface Config {
title?: string
lang: 'en' | 'ru'
theme?: 'system' | 'light' | 'dark' | 'deep' | 'new-theme' // [!code focus]
services: ServicesGroup[]
checkUpdates: boolean
title?: string
lang: 'en' | 'ru'
theme?: 'system' | 'light' | 'dark' | 'deep' | 'new-theme' // [!code focus]
services: ServicesGroup[]
checkUpdates: boolean
}
```
:::
Expand All @@ -153,16 +153,16 @@ export interface Config {

```typescript
export default defineNuxtConfig({
i18n: {
locales: [
{ // [!code focus]
code: 'en', // [!code focus]
iso: 'en-US', // [!code focus]
name: 'English', // [!code focus]
file: 'en-US.json', // [!code focus]
}, // [!code focus]
],
},
i18n: {
locales: [
{ // [!code focus]
code: 'en', // [!code focus]
iso: 'en-US', // [!code focus]
name: 'English', // [!code focus]
file: 'en-US.json', // [!code focus]
}, // [!code focus]
],
},
})
```

Expand Down

0 comments on commit ac38775

Please sign in to comment.