@intlayer/docs 7.1.7 → 7.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -141,23 +141,23 @@ Adicione o plugin intlayer na sua configuração.
141
141
 
142
142
  ```typescript fileName="vite.config.ts" codeFormat="typescript"
143
143
  import { defineConfig } from "vite";
144
- import react from "@vitejs/plugin-react-swc";
144
+ import { svelte } from "@sveltejs/vite-plugin-svelte";
145
145
  import { intlayer } from "vite-intlayer";
146
146
 
147
147
  // https://vitejs.dev/config/
148
148
  export default defineConfig({
149
- plugins: [react(), intlayer()],
149
+ plugins: [svelte(), intlayer()],
150
150
  });
151
151
  ```
152
152
 
153
153
  ```javascript fileName="vite.config.mjs" codeFormat="esm"
154
154
  import { defineConfig } from "vite";
155
- import react from "@vitejs/plugin-react-swc";
155
+ import { svelte } from "@sveltejs/vite-plugin-svelte";
156
156
  import { intlayer } from "vite-intlayer";
157
157
 
158
158
  // https://vitejs.dev/config/
159
159
  export default defineConfig({
160
- plugins: [react(), intlayer()],
160
+ plugins: [svelte(), intlayer()],
161
161
  });
162
162
  ```
163
163
 
@@ -183,7 +183,13 @@ import { t, type Dictionary } from "intlayer";
183
183
 
184
184
  const appContent = {
185
185
  key: "app",
186
- content: {},
186
+ content: {
187
+ title: t({
188
+ en: "Hello World",
189
+ fr: "Bonjour le monde",
190
+ es: "Hola mundo",
191
+ }),
192
+ },
187
193
  } satisfies Dictionary;
188
194
 
189
195
  export default appContent;
@@ -195,7 +201,13 @@ import { t } from "intlayer";
195
201
  /** @type {import('intlayer').Dictionary} */
196
202
  const appContent = {
197
203
  key: "app",
198
- content: {},
204
+ content: {
205
+ title: t({
206
+ en: "Hello World",
207
+ fr: "Bonjour le monde",
208
+ es: "Hola mundo",
209
+ }),
210
+ },
199
211
  };
200
212
 
201
213
  export default appContent;
@@ -208,7 +220,13 @@ const { t } = require("intlayer");
208
220
  // Declaração do conteúdo da aplicação
209
221
  const appContent = {
210
222
  key: "app",
211
- content: {},
223
+ content: {
224
+ title: t({
225
+ en: "Hello World",
226
+ fr: "Bonjour le monde",
227
+ es: "Hola mundo",
228
+ }),
229
+ },
212
230
  };
213
231
 
214
232
  module.exports = appContent;
@@ -218,7 +236,16 @@ module.exports = appContent;
218
236
  {
219
237
  "$schema": "https://intlayer.org/schema.json",
220
238
  "key": "app",
221
- "content": {}
239
+ "content": {
240
+ "title": {
241
+ "nodeType": "translation",
242
+ "translation": {
243
+ "en": "Hello World",
244
+ "fr": "Bonjour le monde",
245
+ "es": "Hola mundo"
246
+ }
247
+ }
248
+ }
222
249
  }
223
250
  ```
224
251
 
@@ -142,23 +142,23 @@ module.exports = config;
142
142
 
143
143
  ```typescript fileName="vite.config.ts" codeFormat="typescript"
144
144
  import { defineConfig } from "vite";
145
- import react from "@vitejs/plugin-react-swc";
145
+ import { svelte } from "@sveltejs/vite-plugin-svelte";
146
146
  import { intlayer } from "vite-intlayer";
147
147
 
148
148
  // https://vitejs.dev/config/
149
149
  export default defineConfig({
150
- plugins: [react(), intlayer()],
150
+ plugins: [svelte(), intlayer()],
151
151
  });
152
152
  ```
153
153
 
154
154
  ```javascript fileName="vite.config.mjs" codeFormat="esm"
155
155
  import { defineConfig } from "vite";
156
- import react from "@vitejs/plugin-react-swc";
156
+ import { svelte } from "@sveltejs/vite-plugin-svelte";
157
157
  import { intlayer } from "vite-intlayer";
158
158
 
159
159
  // https://vitejs.dev/config/
160
160
  export default defineConfig({
161
- plugins: [react(), intlayer()],
161
+ plugins: [svelte(), intlayer()],
162
162
  });
163
163
  ```
164
164
 
@@ -184,7 +184,13 @@ import { t, type Dictionary } from "intlayer";
184
184
 
185
185
  const appContent = {
186
186
  key: "app",
187
- content: {},
187
+ content: {
188
+ title: t({
189
+ en: "Hello World",
190
+ fr: "Bonjour le monde",
191
+ es: "Hola mundo",
192
+ }),
193
+ },
188
194
  } satisfies Dictionary;
189
195
 
190
196
  export default appContent;
@@ -196,7 +202,13 @@ import { t } from "intlayer";
196
202
  /** @type {import('intlayer').Dictionary} */
197
203
  const appContent = {
198
204
  key: "app",
199
- content: {},
205
+ content: {
206
+ title: t({
207
+ en: "Hello World",
208
+ fr: "Bonjour le monde",
209
+ es: "Hola mundo",
210
+ }),
211
+ },
200
212
  };
201
213
 
202
214
  export default appContent;
@@ -209,7 +221,13 @@ const { t } = require("intlayer");
209
221
  // Объявление словаря контента
210
222
  const appContent = {
211
223
  key: "app",
212
- content: {},
224
+ content: {
225
+ title: t({
226
+ en: "Hello World",
227
+ fr: "Bonjour le monde",
228
+ es: "Hola mundo",
229
+ }),
230
+ },
213
231
  };
214
232
 
215
233
  module.exports = appContent;
@@ -219,7 +237,16 @@ module.exports = appContent;
219
237
  {
220
238
  "$schema": "https://intlayer.org/schema.json",
221
239
  "key": "app",
222
- "content": {}
240
+ "content": {
241
+ "title": {
242
+ "nodeType": "translation",
243
+ "translation": {
244
+ "en": "Hello World",
245
+ "fr": "Bonjour le monde",
246
+ "es": "Hola mundo"
247
+ }
248
+ }
249
+ }
223
250
  }
224
251
  ```
225
252
 
@@ -139,23 +139,23 @@ Yapılandırmanıza intlayer eklentisini ekleyin.
139
139
 
140
140
  ```typescript fileName="vite.config.ts" codeFormat="typescript"
141
141
  import { defineConfig } from "vite";
142
- import react from "@vitejs/plugin-react-swc";
142
+ import { svelte } from "@sveltejs/vite-plugin-svelte";
143
143
  import { intlayer } from "vite-intlayer";
144
144
 
145
145
  // https://vitejs.dev/config/
146
146
  export default defineConfig({
147
- plugins: [react(), intlayer()],
147
+ plugins: [svelte(), intlayer()],
148
148
  });
149
149
  ```
150
150
 
151
151
  ```javascript fileName="vite.config.mjs" codeFormat="esm"
152
152
  import { defineConfig } from "vite";
153
- import react from "@vitejs/plugin-react-swc";
153
+ import { svelte } from "@sveltejs/vite-plugin-svelte";
154
154
  import { intlayer } from "vite-intlayer";
155
155
 
156
156
  // https://vitejs.dev/config/
157
157
  export default defineConfig({
158
- plugins: [react(), intlayer()],
158
+ plugins: [svelte(), intlayer()],
159
159
  });
160
160
  ```
161
161
 
@@ -181,7 +181,13 @@ import { t, type Dictionary } from "intlayer";
181
181
 
182
182
  const appContent = {
183
183
  key: "app",
184
- content: {},
184
+ content: {
185
+ title: t({
186
+ en: "Hello World",
187
+ fr: "Bonjour le monde",
188
+ es: "Hola mundo",
189
+ }),
190
+ },
185
191
  } satisfies Dictionary;
186
192
 
187
193
  export default appContent;
@@ -193,7 +199,13 @@ import { t } from "intlayer";
193
199
  /** @type {import('intlayer').Dictionary} */
194
200
  const appContent = {
195
201
  key: "app",
196
- content: {},
202
+ content: {
203
+ title: t({
204
+ en: "Hello World",
205
+ fr: "Bonjour le monde",
206
+ es: "Hola mundo",
207
+ }),
208
+ },
197
209
  };
198
210
 
199
211
  export default appContent;
@@ -205,7 +217,13 @@ const { t } = require("intlayer");
205
217
  /** @type {import('intlayer').Dictionary} */
206
218
  const appContent = {
207
219
  key: "app",
208
- content: {},
220
+ content: {
221
+ title: t({
222
+ en: "Hello World",
223
+ fr: "Bonjour le monde",
224
+ es: "Hola mundo",
225
+ }),
226
+ },
209
227
  };
210
228
 
211
229
  module.exports = appContent;
@@ -215,7 +233,16 @@ module.exports = appContent;
215
233
  {
216
234
  "$schema": "https://intlayer.org/schema.json",
217
235
  "key": "app",
218
- "content": {}
236
+ "content": {
237
+ "title": {
238
+ "nodeType": "translation",
239
+ "translation": {
240
+ "en": "Hello World",
241
+ "fr": "Bonjour le monde",
242
+ "es": "Hola mundo"
243
+ }
244
+ }
245
+ }
219
246
  }
220
247
  ```
221
248
 
@@ -145,23 +145,23 @@ Thêm plugin intlayer vào cấu hình của bạn.
145
145
 
146
146
  ```typescript fileName="vite.config.ts" codeFormat="typescript"
147
147
  import { defineConfig } from "vite";
148
- import react from "@vitejs/plugin-react-swc";
148
+ import { svelte } from "@sveltejs/vite-plugin-svelte";
149
149
  import { intlayer } from "vite-intlayer";
150
150
 
151
151
  // https://vitejs.dev/config/
152
152
  export default defineConfig({
153
- plugins: [react(), intlayer()],
153
+ plugins: [svelte(), intlayer()],
154
154
  });
155
155
  ```
156
156
 
157
157
  ```javascript fileName="vite.config.mjs" codeFormat="esm"
158
158
  import { defineConfig } from "vite";
159
- import react from "@vitejs/plugin-react-swc";
159
+ import { svelte } from "@sveltejs/vite-plugin-svelte";
160
160
  import { intlayer } from "vite-intlayer";
161
161
 
162
162
  // https://vitejs.dev/config/
163
163
  export default defineConfig({
164
- plugins: [react(), intlayer()],
164
+ plugins: [svelte(), intlayer()],
165
165
  });
166
166
  ```
167
167
 
@@ -187,7 +187,13 @@ import { t, type Dictionary } from "intlayer";
187
187
 
188
188
  const appContent = {
189
189
  key: "app",
190
- content: {},
190
+ content: {
191
+ title: t({
192
+ en: "Hello World",
193
+ fr: "Bonjour le monde",
194
+ es: "Hola mundo",
195
+ }),
196
+ },
191
197
  } satisfies Dictionary;
192
198
 
193
199
  export default appContent;
@@ -199,7 +205,13 @@ import { t } from "intlayer";
199
205
  /** @type {import('intlayer').Dictionary} */
200
206
  const appContent = {
201
207
  key: "app",
202
- content: {},
208
+ content: {
209
+ title: t({
210
+ en: "Hello World",
211
+ fr: "Bonjour le monde",
212
+ es: "Hola mundo",
213
+ }),
214
+ },
203
215
  };
204
216
 
205
217
  export default appContent;
@@ -212,7 +224,13 @@ const { t } = require("intlayer");
212
224
  /** @type {import('intlayer').Dictionary} */
213
225
  const appContent = {
214
226
  key: "app",
215
- content: {},
227
+ content: {
228
+ title: t({
229
+ en: "Hello World",
230
+ fr: "Bonjour le monde",
231
+ es: "Hola mundo",
232
+ }),
233
+ },
216
234
  };
217
235
 
218
236
  module.exports = appContent;
@@ -222,7 +240,16 @@ module.exports = appContent;
222
240
  {
223
241
  "$schema": "https://intlayer.org/schema.json",
224
242
  "key": "app",
225
- "content": {}
243
+ "content": {
244
+ "title": {
245
+ "nodeType": "translation",
246
+ "translation": {
247
+ "en": "Hello World",
248
+ "fr": "Bonjour le monde",
249
+ "es": "Hola mundo"
250
+ }
251
+ }
252
+ }
226
253
  }
227
254
  ```
228
255
 
@@ -140,23 +140,23 @@ module.exports = config;
140
140
 
141
141
  ```typescript fileName="vite.config.ts" codeFormat="typescript"
142
142
  import { defineConfig } from "vite";
143
- import react from "@vitejs/plugin-react-swc";
143
+ import { svelte } from "@sveltejs/vite-plugin-svelte";
144
144
  import { intlayer } from "vite-intlayer";
145
145
 
146
146
  // https://vitejs.dev/config/
147
147
  export default defineConfig({
148
- plugins: [react(), intlayer()],
148
+ plugins: [svelte(), intlayer()],
149
149
  });
150
150
  ```
151
151
 
152
152
  ```javascript fileName="vite.config.mjs" codeFormat="esm"
153
153
  import { defineConfig } from "vite";
154
- import react from "@vitejs/plugin-react-swc";
154
+ import { svelte } from "@sveltejs/vite-plugin-svelte";
155
155
  import { intlayer } from "vite-intlayer";
156
156
 
157
157
  // https://vitejs.dev/config/
158
158
  export default defineConfig({
159
- plugins: [react(), intlayer()],
159
+ plugins: [svelte(), intlayer()],
160
160
  });
161
161
  ```
162
162
 
@@ -182,7 +182,13 @@ import { t, type Dictionary } from "intlayer";
182
182
 
183
183
  const appContent = {
184
184
  key: "app",
185
- content: {},
185
+ content: {
186
+ title: t({
187
+ en: "Hello World",
188
+ fr: "Bonjour le monde",
189
+ es: "Hola mundo",
190
+ }),
191
+ },
186
192
  } satisfies Dictionary;
187
193
 
188
194
  export default appContent;
@@ -194,7 +200,13 @@ import { t } from "intlayer";
194
200
  /** @type {import('intlayer').Dictionary} */
195
201
  const appContent = {
196
202
  key: "app",
197
- content: {},
203
+ content: {
204
+ title: t({
205
+ en: "Hello World",
206
+ fr: "Bonjour le monde",
207
+ es: "Hola mundo",
208
+ }),
209
+ },
198
210
  };
199
211
 
200
212
  export default appContent;
@@ -207,7 +219,13 @@ const { t } = require("intlayer");
207
219
  // 应用内容声明
208
220
  const appContent = {
209
221
  key: "app",
210
- content: {},
222
+ content: {
223
+ title: t({
224
+ en: "Hello World",
225
+ fr: "Bonjour le monde",
226
+ es: "Hola mundo",
227
+ }),
228
+ },
211
229
  };
212
230
 
213
231
  module.exports = appContent;
@@ -217,7 +235,16 @@ module.exports = appContent;
217
235
  {
218
236
  "$schema": "https://intlayer.org/schema.json",
219
237
  "key": "app",
220
- "content": {}
238
+ "content": {
239
+ "title": {
240
+ "nodeType": "translation",
241
+ "translation": {
242
+ "en": "Hello World",
243
+ "fr": "Bonjour le monde",
244
+ "es": "Hola mundo"
245
+ }
246
+ }
247
+ }
221
248
  }
222
249
  ```
223
250
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/docs",
3
- "version": "7.1.7",
3
+ "version": "7.1.8",
4
4
  "private": false,
5
5
  "description": "Intlayer documentation",
6
6
  "keywords": [
@@ -72,13 +72,13 @@
72
72
  "watch": "webpack --config ./webpack.config.ts --watch"
73
73
  },
74
74
  "dependencies": {
75
- "@intlayer/config": "7.1.7",
76
- "@intlayer/core": "7.1.7",
77
- "@intlayer/types": "7.1.7"
75
+ "@intlayer/config": "7.1.8",
76
+ "@intlayer/core": "7.1.8",
77
+ "@intlayer/types": "7.1.8"
78
78
  },
79
79
  "devDependencies": {
80
- "@intlayer/api": "7.1.7",
81
- "@intlayer/cli": "7.1.7",
80
+ "@intlayer/api": "7.1.8",
81
+ "@intlayer/cli": "7.1.8",
82
82
  "@types/node": "24.10.1",
83
83
  "@utils/ts-config": "1.0.4",
84
84
  "@utils/ts-config-types": "1.0.4",