File tree 2 files changed +30
-30
lines changed
2 files changed +30
-30
lines changed Original file line number Diff line number Diff line change @@ -123,11 +123,11 @@ html.new-theme {
123
123
::: code-group
124
124
``` typescript [types/config.d.ts]
125
125
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
131
131
}
132
132
```
133
133
:::
@@ -153,16 +153,16 @@ After creating the language file, you need to plug it into `nuxt.config.ts`
153
153
154
154
``` typescript
155
155
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
+ },
166
166
})
167
167
```
168
168
Original file line number Diff line number Diff line change @@ -123,11 +123,11 @@ html.new-theme {
123
123
::: code-group
124
124
``` typescript [types/config.d.ts]
125
125
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
131
131
}
132
132
```
133
133
:::
@@ -153,16 +153,16 @@ export interface Config {
153
153
154
154
``` typescript
155
155
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
+ },
166
166
})
167
167
```
168
168
You can’t perform that action at this time.
0 commit comments