@intlayer/docs 8.9.4-canary.0 → 8.9.5
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.
- package/dist/cjs/generated/docs.entry.cjs +20 -0
- package/dist/cjs/generated/docs.entry.cjs.map +1 -1
- package/dist/esm/generated/docs.entry.mjs +20 -0
- package/dist/esm/generated/docs.entry.mjs.map +1 -1
- package/dist/types/generated/docs.entry.d.ts +1 -0
- package/dist/types/generated/docs.entry.d.ts.map +1 -1
- package/docs/ar/benchmark/index.md +0 -3
- package/docs/ar/benchmark/nextjs.md +15 -6
- package/docs/ar/benchmark/solid.md +155 -0
- package/docs/ar/benchmark/svelte.md +148 -0
- package/docs/ar/benchmark/tanstack.md +12 -3
- package/docs/ar/benchmark/vue.md +160 -0
- package/docs/ar/configuration.md +16 -12
- package/docs/ar/dictionary/content_file.md +51 -1
- package/docs/ar/mcp_server.md +30 -17
- package/docs/ar/plugins/sync-po.md +333 -0
- package/docs/bn/configuration.md +16 -12
- package/docs/cs/configuration.md +16 -12
- package/docs/de/benchmark/index.md +0 -3
- package/docs/de/benchmark/nextjs.md +15 -6
- package/docs/de/benchmark/solid.md +155 -0
- package/docs/de/benchmark/svelte.md +148 -0
- package/docs/de/benchmark/tanstack.md +12 -3
- package/docs/de/benchmark/vue.md +160 -0
- package/docs/de/configuration.md +16 -12
- package/docs/de/dictionary/content_file.md +52 -2
- package/docs/de/mcp_server.md +29 -16
- package/docs/de/plugins/sync-po.md +332 -0
- package/docs/en/benchmark/nextjs.md +11 -2
- package/docs/en/benchmark/solid.md +22 -4
- package/docs/en/benchmark/svelte.md +17 -5
- package/docs/en/benchmark/tanstack.md +18 -3
- package/docs/en/benchmark/vue.md +17 -11
- package/docs/en/configuration.md +16 -13
- package/docs/en/dictionary/content_file.md +51 -1
- package/docs/en/mcp_server.md +31 -18
- package/docs/en/plugins/sync-po.md +333 -0
- package/docs/en-GB/benchmark/index.md +0 -3
- package/docs/en-GB/benchmark/nextjs.md +15 -6
- package/docs/en-GB/benchmark/solid.md +155 -0
- package/docs/en-GB/benchmark/svelte.md +148 -0
- package/docs/en-GB/benchmark/tanstack.md +12 -3
- package/docs/en-GB/benchmark/vue.md +160 -0
- package/docs/en-GB/configuration.md +15 -11
- package/docs/en-GB/dictionary/content_file.md +51 -1
- package/docs/en-GB/mcp_server.md +31 -18
- package/docs/en-GB/plugins/sync-po.md +333 -0
- package/docs/es/benchmark/index.md +0 -3
- package/docs/es/benchmark/nextjs.md +15 -6
- package/docs/es/benchmark/solid.md +155 -0
- package/docs/es/benchmark/svelte.md +148 -0
- package/docs/es/benchmark/tanstack.md +12 -3
- package/docs/es/benchmark/vue.md +160 -0
- package/docs/es/configuration.md +16 -12
- package/docs/es/dictionary/content_file.md +51 -1
- package/docs/es/mcp_server.md +30 -17
- package/docs/es/plugins/sync-po.md +333 -0
- package/docs/fr/benchmark/index.md +0 -3
- package/docs/fr/benchmark/nextjs.md +15 -6
- package/docs/fr/benchmark/solid.md +155 -0
- package/docs/fr/benchmark/svelte.md +148 -0
- package/docs/fr/benchmark/tanstack.md +12 -3
- package/docs/fr/benchmark/vue.md +160 -0
- package/docs/fr/configuration.md +16 -12
- package/docs/fr/dictionary/content_file.md +51 -1
- package/docs/fr/mcp_server.md +30 -17
- package/docs/fr/plugins/sync-po.md +333 -0
- package/docs/hi/benchmark/nextjs.md +15 -6
- package/docs/hi/benchmark/solid.md +155 -0
- package/docs/hi/benchmark/svelte.md +148 -0
- package/docs/hi/benchmark/tanstack.md +12 -3
- package/docs/hi/benchmark/vue.md +160 -0
- package/docs/hi/configuration.md +16 -12
- package/docs/hi/dictionary/content_file.md +51 -1
- package/docs/hi/mcp_server.md +31 -18
- package/docs/hi/plugins/sync-po.md +333 -0
- package/docs/id/benchmark/index.md +0 -3
- package/docs/id/benchmark/nextjs.md +15 -6
- package/docs/id/benchmark/solid.md +155 -0
- package/docs/id/benchmark/svelte.md +148 -0
- package/docs/id/benchmark/tanstack.md +12 -3
- package/docs/id/benchmark/vue.md +160 -0
- package/docs/id/configuration.md +16 -12
- package/docs/id/dictionary/content_file.md +51 -1
- package/docs/id/mcp_server.md +30 -17
- package/docs/id/plugins/sync-po.md +333 -0
- package/docs/it/benchmark/index.md +1 -4
- package/docs/it/benchmark/nextjs.md +15 -6
- package/docs/it/benchmark/solid.md +155 -0
- package/docs/it/benchmark/svelte.md +148 -0
- package/docs/it/benchmark/tanstack.md +12 -3
- package/docs/it/benchmark/vue.md +160 -0
- package/docs/it/configuration.md +16 -12
- package/docs/it/dictionary/content_file.md +51 -1
- package/docs/it/mcp_server.md +30 -17
- package/docs/it/plugins/sync-po.md +333 -0
- package/docs/ja/benchmark/index.md +5 -5
- package/docs/ja/benchmark/nextjs.md +15 -6
- package/docs/ja/benchmark/solid.md +155 -0
- package/docs/ja/benchmark/svelte.md +148 -0
- package/docs/ja/benchmark/tanstack.md +12 -3
- package/docs/ja/benchmark/vue.md +160 -0
- package/docs/ja/configuration.md +16 -12
- package/docs/ja/dictionary/content_file.md +50 -2
- package/docs/ja/intlayer_with_nextjs_no_locale_path.md +4 -3
- package/docs/ja/mcp_server.md +29 -16
- package/docs/ja/plugins/sync-po.md +333 -0
- package/docs/ko/benchmark/nextjs.md +15 -6
- package/docs/ko/benchmark/solid.md +155 -0
- package/docs/ko/benchmark/svelte.md +148 -0
- package/docs/ko/benchmark/tanstack.md +12 -3
- package/docs/ko/benchmark/vue.md +160 -0
- package/docs/ko/configuration.md +16 -12
- package/docs/ko/dictionary/content_file.md +51 -1
- package/docs/ko/intlayer_with_nextjs_no_locale_path.md +3 -2
- package/docs/ko/mcp_server.md +31 -18
- package/docs/ko/plugins/sync-po.md +333 -0
- package/docs/nl/configuration.md +16 -12
- package/docs/pl/benchmark/index.md +0 -3
- package/docs/pl/benchmark/nextjs.md +15 -6
- package/docs/pl/benchmark/solid.md +155 -0
- package/docs/pl/benchmark/svelte.md +148 -0
- package/docs/pl/benchmark/tanstack.md +12 -3
- package/docs/pl/benchmark/vue.md +160 -0
- package/docs/pl/configuration.md +16 -12
- package/docs/pl/dictionary/content_file.md +51 -1
- package/docs/pl/mcp_server.md +30 -17
- package/docs/pl/plugins/sync-po.md +333 -0
- package/docs/pt/benchmark/index.md +0 -3
- package/docs/pt/benchmark/nextjs.md +16 -7
- package/docs/pt/benchmark/solid.md +155 -0
- package/docs/pt/benchmark/svelte.md +148 -0
- package/docs/pt/benchmark/tanstack.md +13 -4
- package/docs/pt/benchmark/vue.md +160 -0
- package/docs/pt/configuration.md +16 -12
- package/docs/pt/dictionary/content_file.md +51 -1
- package/docs/pt/mcp_server.md +30 -17
- package/docs/pt/plugins/sync-po.md +333 -0
- package/docs/ru/benchmark/nextjs.md +15 -6
- package/docs/ru/benchmark/solid.md +155 -0
- package/docs/ru/benchmark/svelte.md +148 -0
- package/docs/ru/benchmark/tanstack.md +12 -3
- package/docs/ru/benchmark/vue.md +160 -0
- package/docs/ru/configuration.md +16 -12
- package/docs/ru/dictionary/content_file.md +52 -2
- package/docs/ru/mcp_server.md +30 -17
- package/docs/ru/plugins/sync-po.md +333 -0
- package/docs/tr/benchmark/index.md +0 -3
- package/docs/tr/benchmark/nextjs.md +15 -6
- package/docs/tr/benchmark/solid.md +155 -0
- package/docs/tr/benchmark/svelte.md +148 -0
- package/docs/tr/benchmark/tanstack.md +12 -3
- package/docs/tr/benchmark/vue.md +160 -0
- package/docs/tr/configuration.md +16 -12
- package/docs/tr/dictionary/content_file.md +51 -1
- package/docs/tr/mcp_server.md +31 -18
- package/docs/tr/plugins/sync-po.md +333 -0
- package/docs/uk/benchmark/nextjs.md +15 -6
- package/docs/uk/benchmark/solid.md +155 -0
- package/docs/uk/benchmark/svelte.md +148 -0
- package/docs/uk/benchmark/tanstack.md +12 -3
- package/docs/uk/benchmark/vue.md +160 -0
- package/docs/uk/configuration.md +16 -12
- package/docs/uk/dictionary/content_file.md +51 -1
- package/docs/uk/mcp_server.md +29 -16
- package/docs/uk/plugins/sync-po.md +333 -0
- package/docs/ur/configuration.md +16 -12
- package/docs/vi/benchmark/index.md +0 -3
- package/docs/vi/benchmark/nextjs.md +15 -6
- package/docs/vi/benchmark/solid.md +155 -0
- package/docs/vi/benchmark/svelte.md +148 -0
- package/docs/vi/benchmark/tanstack.md +12 -3
- package/docs/vi/benchmark/vue.md +160 -0
- package/docs/vi/configuration.md +16 -12
- package/docs/vi/dictionary/content_file.md +51 -1
- package/docs/vi/intlayer_with_nextjs_15.md +10 -57
- package/docs/vi/mcp_server.md +30 -17
- package/docs/vi/plugins/sync-po.md +333 -0
- package/docs/zh/benchmark/nextjs.md +15 -6
- package/docs/zh/benchmark/solid.md +155 -0
- package/docs/zh/benchmark/svelte.md +148 -0
- package/docs/zh/benchmark/tanstack.md +12 -3
- package/docs/zh/benchmark/vue.md +160 -0
- package/docs/zh/configuration.md +16 -12
- package/docs/zh/dictionary/content_file.md +51 -3
- package/docs/zh/mcp_server.md +31 -18
- package/docs/zh/plugins/sync-po.md +333 -0
- package/frequent_questions/ar/intlayerNode.md +3 -3
- package/frequent_questions/de/intlayerNode.md +3 -3
- package/frequent_questions/en/intlayerNode.md +3 -3
- package/frequent_questions/en-GB/intlayerNode.md +3 -3
- package/frequent_questions/es/intlayerNode.md +3 -3
- package/frequent_questions/fr/intlayerNode.md +3 -3
- package/frequent_questions/hi/intlayerNode.md +3 -3
- package/frequent_questions/id/intlayerNode.md +3 -3
- package/frequent_questions/it/intlayerNode.md +3 -3
- package/frequent_questions/ja/intlayerNode.md +3 -3
- package/frequent_questions/ko/intlayerNode.md +3 -3
- package/frequent_questions/pl/intlayerNode.md +3 -3
- package/frequent_questions/pt/intlayerNode.md +3 -3
- package/frequent_questions/ru/intlayerNode.md +3 -3
- package/frequent_questions/tr/intlayerNode.md +3 -3
- package/frequent_questions/uk/intlayerNode.md +3 -3
- package/frequent_questions/vi/intlayerNode.md +3 -3
- package/frequent_questions/zh/intlayerNode.md +3 -3
- package/package.json +8 -8
- package/src/generated/docs.entry.ts +20 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
createdAt: 2026-05-07
|
|
3
3
|
updatedAt: 2026-05-07
|
|
4
4
|
title: Tipo IntlayerNode. Cos'è?
|
|
5
|
-
description: Cos'è il tipo IntlayerNode? Perché la mia stringa viene trasformata in un IntlayerNode
|
|
5
|
+
description: Cos'è il tipo IntlayerNode? Perché la mia stringa viene trasformata in un IntlayerNode<string>?
|
|
6
6
|
keywords:
|
|
7
7
|
- Introduzione
|
|
8
8
|
- Iniziare
|
|
@@ -57,7 +57,7 @@ import { useIntlayer } from "react-intlayer";
|
|
|
57
57
|
const AppContent = () => {
|
|
58
58
|
const { title } = useIntlayer("app");
|
|
59
59
|
|
|
60
|
-
return title; // restituisce il tipo: IntlayerNode
|
|
60
|
+
return title; // restituisce il tipo: IntlayerNode<string>
|
|
61
61
|
};
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -80,7 +80,7 @@ Per esempio:
|
|
|
80
80
|
const content = useIntlayer("app");
|
|
81
81
|
|
|
82
82
|
// Caso di una stringa
|
|
83
|
-
content.title; // Restituisce IntlayerNode
|
|
83
|
+
content.title; // Restituisce IntlayerNode<string>
|
|
84
84
|
content.title.value; // Restituisce il contenuto di base, in questo caso una stringa
|
|
85
85
|
|
|
86
86
|
content.title.toString(); // Restituisce una stringa
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
createdAt: 2026-05-07
|
|
3
3
|
updatedAt: 2026-05-07
|
|
4
4
|
title: IntlayerNode 型。これは何ですか?
|
|
5
|
-
description: IntlayerNode 型とは何ですか?なぜ私の文字列が IntlayerNode
|
|
5
|
+
description: IntlayerNode 型とは何ですか?なぜ私の文字列が IntlayerNode<string> に変換されるのですか?
|
|
6
6
|
keywords:
|
|
7
7
|
- 導入
|
|
8
8
|
- はじめる
|
|
@@ -57,7 +57,7 @@ import { useIntlayer } from "react-intlayer";
|
|
|
57
57
|
const AppContent = () => {
|
|
58
58
|
const { title } = useIntlayer("app");
|
|
59
59
|
|
|
60
|
-
return title; // 型: IntlayerNode
|
|
60
|
+
return title; // 型: IntlayerNode<string> を返します
|
|
61
61
|
};
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -80,7 +80,7 @@ IntlayerNode は、拡張された React/Vue/Preact/Solid/Angular/Svelte/Lit/Van
|
|
|
80
80
|
const content = useIntlayer("app");
|
|
81
81
|
|
|
82
82
|
// 文字列の場合
|
|
83
|
-
content.title; // IntlayerNode
|
|
83
|
+
content.title; // IntlayerNode<string> を返す
|
|
84
84
|
content.title.value; // ベースとなるコンテンツ(ここでは文字列)を返す
|
|
85
85
|
|
|
86
86
|
content.title.toString(); // 文字列を返す
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
createdAt: 2026-05-07
|
|
3
3
|
updatedAt: 2026-05-07
|
|
4
4
|
title: IntlayerNode 타입. 무엇인가요?
|
|
5
|
-
description: IntlayerNode 타입은 무엇인가요? 왜 내 문자열이 IntlayerNode
|
|
5
|
+
description: IntlayerNode 타입은 무엇인가요? 왜 내 문자열이 IntlayerNode<string>으로 변환되나요?
|
|
6
6
|
keywords:
|
|
7
7
|
- 소개
|
|
8
8
|
- 시작하기
|
|
@@ -57,7 +57,7 @@ import { useIntlayer } from "react-intlayer";
|
|
|
57
57
|
const AppContent = () => {
|
|
58
58
|
const { title } = useIntlayer("app");
|
|
59
59
|
|
|
60
|
-
return title; // 타입 반환: IntlayerNode
|
|
60
|
+
return title; // 타입 반환: IntlayerNode<string>
|
|
61
61
|
};
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -80,7 +80,7 @@ IntlayerNode는 강화된 React/Vue/Preact/Solid/Angular/Svelte/Lit/Vanilla 노
|
|
|
80
80
|
const content = useIntlayer("app");
|
|
81
81
|
|
|
82
82
|
// 문자열의 경우
|
|
83
|
-
content.title; // IntlayerNode
|
|
83
|
+
content.title; // IntlayerNode<string> 반환
|
|
84
84
|
content.title.value; // 기본 콘텐츠 반환, 여기서는 문자열
|
|
85
85
|
|
|
86
86
|
content.title.toString(); // 문자열 반환
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
createdAt: 2026-05-07
|
|
3
3
|
updatedAt: 2026-05-07
|
|
4
4
|
title: Typ IntlayerNode. Co to jest?
|
|
5
|
-
description: Czym jest typ IntlayerNode? Dlaczego mój ciąg znaków jest przekształcany w IntlayerNode
|
|
5
|
+
description: Czym jest typ IntlayerNode? Dlaczego mój ciąg znaków jest przekształcany w IntlayerNode<string>?
|
|
6
6
|
keywords:
|
|
7
7
|
- Wprowadzenie
|
|
8
8
|
- Rozpoczęcie pracy
|
|
@@ -57,7 +57,7 @@ import { useIntlayer } from "react-intlayer";
|
|
|
57
57
|
const AppContent = () => {
|
|
58
58
|
const { title } = useIntlayer("app");
|
|
59
59
|
|
|
60
|
-
return title; // zwraca typ: IntlayerNode
|
|
60
|
+
return title; // zwraca typ: IntlayerNode<string>
|
|
61
61
|
};
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -80,7 +80,7 @@ Na przykład:
|
|
|
80
80
|
const content = useIntlayer("app");
|
|
81
81
|
|
|
82
82
|
// Przypadek ciągu znaków (String)
|
|
83
|
-
content.title; // Zwraca IntlayerNode
|
|
83
|
+
content.title; // Zwraca IntlayerNode<string>
|
|
84
84
|
content.title.value; // Zwraca bazową treść, tutaj ciąg znaków
|
|
85
85
|
|
|
86
86
|
content.title.toString(); // Zwraca ciąg znaków
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
createdAt: 2026-05-07
|
|
3
3
|
updatedAt: 2026-05-07
|
|
4
4
|
title: Tipo IntlayerNode. O que é?
|
|
5
|
-
description: O que é o tipo IntlayerNode? Por que minha string é transformada em um IntlayerNode
|
|
5
|
+
description: O que é o tipo IntlayerNode? Por que minha string é transformada em um IntlayerNode<string>?
|
|
6
6
|
keywords:
|
|
7
7
|
- Introdução
|
|
8
8
|
- Primeiros passos
|
|
@@ -57,7 +57,7 @@ import { useIntlayer } from "react-intlayer";
|
|
|
57
57
|
const AppContent = () => {
|
|
58
58
|
const { title } = useIntlayer("app");
|
|
59
59
|
|
|
60
|
-
return title; // retorna o tipo: IntlayerNode
|
|
60
|
+
return title; // retorna o tipo: IntlayerNode<string>
|
|
61
61
|
};
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -80,7 +80,7 @@ Por exemplo:
|
|
|
80
80
|
const content = useIntlayer("app");
|
|
81
81
|
|
|
82
82
|
// Caso de String
|
|
83
|
-
content.title; // Retorna IntlayerNode
|
|
83
|
+
content.title; // Retorna IntlayerNode<string>
|
|
84
84
|
content.title.value; // Retorna o conteúdo base, aqui uma string
|
|
85
85
|
|
|
86
86
|
content.title.toString(); // Retorna string
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
createdAt: 2026-05-07
|
|
3
3
|
updatedAt: 2026-05-07
|
|
4
4
|
title: Тип IntlayerNode. Что это такое?
|
|
5
|
-
description: Что такое тип IntlayerNode? Почему моя строка преобразуется в IntlayerNode
|
|
5
|
+
description: Что такое тип IntlayerNode? Почему моя строка преобразуется в IntlayerNode<string>?
|
|
6
6
|
keywords:
|
|
7
7
|
- Введение
|
|
8
8
|
- Начало работы
|
|
@@ -57,7 +57,7 @@ import { useIntlayer } from "react-intlayer";
|
|
|
57
57
|
const AppContent = () => {
|
|
58
58
|
const { title } = useIntlayer("app");
|
|
59
59
|
|
|
60
|
-
return title; // возвращает тип: IntlayerNode
|
|
60
|
+
return title; // возвращает тип: IntlayerNode<string>
|
|
61
61
|
};
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -80,7 +80,7 @@ IntlayerNode — это расширенный узел React/Vue/Preact/Solid/A
|
|
|
80
80
|
const content = useIntlayer("app");
|
|
81
81
|
|
|
82
82
|
// Случай со строкой
|
|
83
|
-
content.title; // Возвращает IntlayerNode
|
|
83
|
+
content.title; // Возвращает IntlayerNode<string>
|
|
84
84
|
content.title.value; // Возвращает базовое содержимое, в данном случае строку
|
|
85
85
|
|
|
86
86
|
content.title.toString(); // Возвращает строку
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
createdAt: 2026-05-07
|
|
3
3
|
updatedAt: 2026-05-07
|
|
4
4
|
title: IntlayerNode tipi. Nedir bu?
|
|
5
|
-
description: IntlayerNode tipi nedir? Neden dizgim bir IntlayerNode
|
|
5
|
+
description: IntlayerNode tipi nedir? Neden dizgim bir IntlayerNode<string> olarak dönüştürülüyor?
|
|
6
6
|
keywords:
|
|
7
7
|
- Giriş
|
|
8
8
|
- Başlarken
|
|
@@ -57,7 +57,7 @@ import { useIntlayer } from "react-intlayer";
|
|
|
57
57
|
const AppContent = () => {
|
|
58
58
|
const { title } = useIntlayer("app");
|
|
59
59
|
|
|
60
|
-
return title; // şu tipi döndürür: IntlayerNode
|
|
60
|
+
return title; // şu tipi döndürür: IntlayerNode<string>
|
|
61
61
|
};
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -80,7 +80,7 @@ Bir IntlayerNode; zenginleştirilmiş bir React/Vue/Preact/Solid/Angular/Svelte/
|
|
|
80
80
|
const content = useIntlayer("app");
|
|
81
81
|
|
|
82
82
|
// String Durumu
|
|
83
|
-
content.title; // IntlayerNode
|
|
83
|
+
content.title; // IntlayerNode<string> döndürür
|
|
84
84
|
content.title.value; // Temel içeriği döndürür, burada bir string
|
|
85
85
|
|
|
86
86
|
content.title.toString(); // String döndürür
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
createdAt: 2026-05-07
|
|
3
3
|
updatedAt: 2026-05-07
|
|
4
4
|
title: Тип IntlayerNode. Що це таке?
|
|
5
|
-
description: Що таке тип IntlayerNode? Чому мій рядок перетворюється на IntlayerNode
|
|
5
|
+
description: Що таке тип IntlayerNode? Чому мій рядок перетворюється на IntlayerNode<string>?
|
|
6
6
|
keywords:
|
|
7
7
|
- Вступ
|
|
8
8
|
- Початок роботи
|
|
@@ -57,7 +57,7 @@ import { useIntlayer } from "react-intlayer";
|
|
|
57
57
|
const AppContent = () => {
|
|
58
58
|
const { title } = useIntlayer("app");
|
|
59
59
|
|
|
60
|
-
return title; // повертає тип: IntlayerNode
|
|
60
|
+
return title; // повертає тип: IntlayerNode<string>
|
|
61
61
|
};
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -80,7 +80,7 @@ IntlayerNode — це розширений вузол React/Vue/Preact/Solid/Ang
|
|
|
80
80
|
const content = useIntlayer("app");
|
|
81
81
|
|
|
82
82
|
// Випадок з рядком (String)
|
|
83
|
-
content.title; // Повертає IntlayerNode
|
|
83
|
+
content.title; // Повертає IntlayerNode<string>
|
|
84
84
|
content.title.value; // Повертає базовий вміст, у даному випадку рядок
|
|
85
85
|
|
|
86
86
|
content.title.toString(); // Повертає рядок
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
createdAt: 2026-05-07
|
|
3
3
|
updatedAt: 2026-05-07
|
|
4
4
|
title: Kiểu IntlayerNode. Nó là gì?
|
|
5
|
-
description: Kiểu IntlayerNode là gì? Tại sao chuỗi của tôi lại được chuyển đổi thành IntlayerNode
|
|
5
|
+
description: Kiểu IntlayerNode là gì? Tại sao chuỗi của tôi lại được chuyển đổi thành IntlayerNode<string>?
|
|
6
6
|
keywords:
|
|
7
7
|
- Giới thiệu
|
|
8
8
|
- Bắt đầu
|
|
@@ -57,7 +57,7 @@ import { useIntlayer } from "react-intlayer";
|
|
|
57
57
|
const AppContent = () => {
|
|
58
58
|
const { title } = useIntlayer("app");
|
|
59
59
|
|
|
60
|
-
return title; // trả về kiểu: IntlayerNode
|
|
60
|
+
return title; // trả về kiểu: IntlayerNode<string>
|
|
61
61
|
};
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -80,7 +80,7 @@ Ví dụ:
|
|
|
80
80
|
const content = useIntlayer("app");
|
|
81
81
|
|
|
82
82
|
// Trường hợp là Chuỗi (String)
|
|
83
|
-
content.title; // Trả về IntlayerNode
|
|
83
|
+
content.title; // Trả về IntlayerNode<string>
|
|
84
84
|
content.title.value; // Trả về nội dung cơ bản, ở đây là một chuỗi
|
|
85
85
|
|
|
86
86
|
content.title.toString(); // Trả về chuỗi
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
createdAt: 2026-05-07
|
|
3
3
|
updatedAt: 2026-05-07
|
|
4
4
|
title: IntlayerNode 类型。它是什么?
|
|
5
|
-
description: 什么是 IntlayerNode 类型?为什么我的字符串被转换为 IntlayerNode
|
|
5
|
+
description: 什么是 IntlayerNode 类型?为什么我的字符串被转换为 IntlayerNode<string>?
|
|
6
6
|
keywords:
|
|
7
7
|
- 介绍
|
|
8
8
|
- 开始使用
|
|
@@ -57,7 +57,7 @@ import { useIntlayer } from "react-intlayer";
|
|
|
57
57
|
const AppContent = () => {
|
|
58
58
|
const { title } = useIntlayer("app");
|
|
59
59
|
|
|
60
|
-
return title; // 返回类型:IntlayerNode
|
|
60
|
+
return title; // 返回类型:IntlayerNode<string>
|
|
61
61
|
};
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -80,7 +80,7 @@ IntlayerNode 是一个增强的 React/Vue/Preact/Solid/Angular/Svelte/Lit/Vanill
|
|
|
80
80
|
const content = useIntlayer("app");
|
|
81
81
|
|
|
82
82
|
// 字符串的情况
|
|
83
|
-
content.title; // 返回 IntlayerNode
|
|
83
|
+
content.title; // 返回 IntlayerNode<string>
|
|
84
84
|
content.title.value; // 返回基础内容,这里是一个字符串
|
|
85
85
|
|
|
86
86
|
content.title.toString(); // 返回字符串
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/docs",
|
|
3
|
-
"version": "8.9.
|
|
3
|
+
"version": "8.9.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Intlayer documentation",
|
|
6
6
|
"keywords": [
|
|
@@ -72,14 +72,14 @@
|
|
|
72
72
|
"watch": "webpack --config ./webpack.config.ts --watch"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@intlayer/config": "8.9.
|
|
76
|
-
"@intlayer/core": "8.9.
|
|
77
|
-
"@intlayer/types": "8.9.
|
|
75
|
+
"@intlayer/config": "8.9.5",
|
|
76
|
+
"@intlayer/core": "8.9.5",
|
|
77
|
+
"@intlayer/types": "8.9.5"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@intlayer/api": "8.9.
|
|
81
|
-
"@intlayer/cli": "8.9.
|
|
82
|
-
"@types/node": "25.
|
|
80
|
+
"@intlayer/api": "8.9.5",
|
|
81
|
+
"@intlayer/cli": "8.9.5",
|
|
82
|
+
"@types/node": "25.7.0",
|
|
83
83
|
"@utils/ts-config": "1.0.4",
|
|
84
84
|
"@utils/ts-config-types": "1.0.4",
|
|
85
85
|
"@utils/tsdown-config": "1.0.4",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"rimraf": "6.1.3",
|
|
88
88
|
"tsdown": "0.22.00",
|
|
89
89
|
"typescript": "6.0.3",
|
|
90
|
-
"vitest": "4.1.
|
|
90
|
+
"vitest": "4.1.6"
|
|
91
91
|
},
|
|
92
92
|
"engines": {
|
|
93
93
|
"node": ">=14.18"
|
|
@@ -3316,6 +3316,26 @@ export const docsEntry = {
|
|
|
3316
3316
|
vi: readLocale('plugins/sync-json.md', 'vi'),
|
|
3317
3317
|
uk: readLocale('plugins/sync-json.md', 'uk'),
|
|
3318
3318
|
} as unknown as Record<LocalesValues, Promise<string>>,
|
|
3319
|
+
'./docs/en/plugins/sync-po.md': {
|
|
3320
|
+
en: readLocale('plugins/sync-po.md', 'en'),
|
|
3321
|
+
ru: readLocale('plugins/sync-po.md', 'ru'),
|
|
3322
|
+
ja: readLocale('plugins/sync-po.md', 'ja'),
|
|
3323
|
+
fr: readLocale('plugins/sync-po.md', 'fr'),
|
|
3324
|
+
ko: readLocale('plugins/sync-po.md', 'ko'),
|
|
3325
|
+
zh: readLocale('plugins/sync-po.md', 'zh'),
|
|
3326
|
+
es: readLocale('plugins/sync-po.md', 'es'),
|
|
3327
|
+
de: readLocale('plugins/sync-po.md', 'de'),
|
|
3328
|
+
ar: readLocale('plugins/sync-po.md', 'ar'),
|
|
3329
|
+
it: readLocale('plugins/sync-po.md', 'it'),
|
|
3330
|
+
'en-GB': readLocale('plugins/sync-po.md', 'en-GB'),
|
|
3331
|
+
pt: readLocale('plugins/sync-po.md', 'pt'),
|
|
3332
|
+
hi: readLocale('plugins/sync-po.md', 'hi'),
|
|
3333
|
+
tr: readLocale('plugins/sync-po.md', 'tr'),
|
|
3334
|
+
pl: readLocale('plugins/sync-po.md', 'pl'),
|
|
3335
|
+
id: readLocale('plugins/sync-po.md', 'id'),
|
|
3336
|
+
vi: readLocale('plugins/sync-po.md', 'vi'),
|
|
3337
|
+
uk: readLocale('plugins/sync-po.md', 'uk'),
|
|
3338
|
+
} as unknown as Record<LocalesValues, Promise<string>>,
|
|
3319
3339
|
'./docs/en/readme.md': {
|
|
3320
3340
|
en: readLocale('readme.md', 'en'),
|
|
3321
3341
|
ru: readLocale('readme.md', 'ru'),
|