@intlayer/docs 5.7.8 → 5.8.0-canary.0
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/blog/ar/intlayer_with_next-i18next.md +3 -4
- package/blog/ar/intlayer_with_next-intl.md +3 -4
- package/blog/ar/intlayer_with_react-i18next.md +1 -1
- package/blog/ar/intlayer_with_react-intl.md +1 -1
- package/blog/de/intlayer_with_next-i18next.md +3 -4
- package/blog/de/intlayer_with_react-intl.md +1 -1
- package/blog/en/intlayer_with_next-i18next.md +3 -4
- package/blog/en/intlayer_with_next-intl.md +3 -4
- package/blog/en/intlayer_with_react-i18next.md +1 -1
- package/blog/en/intlayer_with_react-intl.md +1 -1
- package/blog/en-GB/intlayer_with_next-i18next.md +3 -4
- package/blog/en-GB/intlayer_with_next-intl.md +3 -4
- package/blog/en-GB/intlayer_with_react-i18next.md +1 -1
- package/blog/en-GB/intlayer_with_react-intl.md +1 -1
- package/blog/es/intlayer_with_next-i18next.md +3 -4
- package/blog/es/intlayer_with_next-intl.md +3 -4
- package/blog/es/intlayer_with_react-i18next.md +1 -1
- package/blog/es/intlayer_with_react-intl.md +1 -1
- package/blog/fr/intlayer_with_next-i18next.md +3 -4
- package/blog/fr/intlayer_with_next-intl.md +3 -4
- package/blog/fr/intlayer_with_react-i18next.md +1 -1
- package/blog/fr/intlayer_with_react-intl.md +1 -1
- package/blog/hi/intlayer_with_next-i18next.md +3 -4
- package/blog/hi/intlayer_with_next-intl.md +3 -4
- package/blog/hi/intlayer_with_react-i18next.md +1 -1
- package/blog/hi/intlayer_with_react-intl.md +1 -1
- package/blog/it/intlayer_with_next-i18next.md +3 -4
- package/blog/it/intlayer_with_next-intl.md +3 -4
- package/blog/it/intlayer_with_react-i18next.md +1 -1
- package/blog/it/intlayer_with_react-intl.md +1 -1
- package/blog/ja/intlayer_with_next-i18next.md +3 -4
- package/blog/ja/intlayer_with_next-intl.md +3 -4
- package/blog/ja/intlayer_with_react-intl.md +1 -1
- package/blog/ko/intlayer_with_next-i18next.md +3 -4
- package/blog/ko/intlayer_with_next-intl.md +3 -4
- package/blog/ko/intlayer_with_react-intl.md +1 -1
- package/blog/pt/intlayer_with_next-i18next.md +3 -4
- package/blog/pt/intlayer_with_next-intl.md +3 -4
- package/blog/pt/intlayer_with_react-intl.md +1 -1
- package/blog/ru/intlayer_with_next-i18next.md +3 -4
- package/blog/ru/intlayer_with_next-intl.md +3 -4
- package/blog/ru/intlayer_with_react-i18next.md +1 -1
- package/blog/ru/intlayer_with_react-intl.md +1 -1
- package/blog/zh/intlayer_with_next-i18next.md +3 -4
- package/blog/zh/intlayer_with_next-intl.md +3 -4
- package/blog/zh/intlayer_with_react-i18next.md +1 -1
- package/blog/zh/intlayer_with_react-intl.md +1 -1
- package/dist/cjs/generated/docs.entry.cjs +41 -0
- package/dist/cjs/generated/docs.entry.cjs.map +1 -1
- package/dist/esm/generated/docs.entry.mjs +41 -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/formatters.md +239 -0
- package/docs/ar/interest_of_intlayer.md +162 -49
- package/docs/ar/introduction.md +3 -3
- package/docs/ar/packages/intlayer/index.md +3 -3
- package/docs/ar/packages/next-intlayer/index.md +3 -3
- package/docs/de/formatters.md +239 -0
- package/docs/de/interest_of_intlayer.md +161 -47
- package/docs/de/introduction.md +3 -3
- package/docs/de/packages/intlayer/index.md +3 -3
- package/docs/de/packages/next-intlayer/index.md +3 -3
- package/docs/de/packages/react-intlayer/index.md +3 -3
- package/docs/en/formatters.md +250 -0
- package/docs/en/interest_of_intlayer.md +159 -46
- package/docs/en/introduction.md +3 -3
- package/docs/en/packages/intlayer/index.md +3 -3
- package/docs/en/packages/next-intlayer/index.md +3 -3
- package/docs/en/packages/react-intlayer/index.md +3 -3
- package/docs/en-GB/formatters.md +239 -0
- package/docs/en-GB/interest_of_intlayer.md +160 -53
- package/docs/en-GB/packages/intlayer/index.md +3 -3
- package/docs/en-GB/packages/next-intlayer/index.md +3 -3
- package/docs/en-GB/packages/react-intlayer/index.md +3 -3
- package/docs/es/formatters.md +239 -0
- package/docs/es/interest_of_intlayer.md +159 -47
- package/docs/es/introduction.md +3 -3
- package/docs/es/packages/intlayer/index.md +3 -3
- package/docs/es/packages/next-intlayer/index.md +3 -3
- package/docs/fr/formatters.md +239 -0
- package/docs/fr/interest_of_intlayer.md +160 -46
- package/docs/fr/introduction.md +3 -3
- package/docs/fr/packages/intlayer/index.md +3 -3
- package/docs/fr/packages/next-intlayer/index.md +3 -3
- package/docs/fr/packages/react-intlayer/index.md +3 -3
- package/docs/hi/formatters.md +239 -0
- package/docs/hi/interest_of_intlayer.md +158 -42
- package/docs/hi/introduction.md +3 -3
- package/docs/hi/packages/intlayer/index.md +3 -3
- package/docs/hi/packages/next-intlayer/index.md +3 -3
- package/docs/hi/packages/react-intlayer/index.md +3 -3
- package/docs/it/formatters.md +239 -0
- package/docs/it/interest_of_intlayer.md +160 -46
- package/docs/it/introduction.md +3 -3
- package/docs/it/packages/intlayer/index.md +3 -3
- package/docs/it/packages/next-intlayer/index.md +3 -3
- package/docs/it/packages/react-intlayer/index.md +3 -3
- package/docs/ja/formatters.md +261 -0
- package/docs/ja/interest_of_intlayer.md +157 -48
- package/docs/ja/introduction.md +3 -3
- package/docs/ja/packages/intlayer/index.md +3 -3
- package/docs/ja/packages/next-intlayer/index.md +3 -3
- package/docs/ja/packages/react-intlayer/index.md +3 -3
- package/docs/ko/formatters.md +258 -0
- package/docs/ko/interest_of_intlayer.md +160 -48
- package/docs/ko/introduction.md +3 -3
- package/docs/ko/packages/intlayer/index.md +3 -3
- package/docs/ko/packages/next-intlayer/index.md +3 -3
- package/docs/ko/packages/react-intlayer/index.md +3 -3
- package/docs/pt/formatters.md +239 -0
- package/docs/pt/interest_of_intlayer.md +162 -47
- package/docs/pt/introduction.md +3 -3
- package/docs/pt/packages/intlayer/index.md +3 -3
- package/docs/pt/packages/next-intlayer/index.md +3 -3
- package/docs/pt/packages/react-intlayer/index.md +3 -3
- package/docs/ru/formatters.md +239 -0
- package/docs/ru/interest_of_intlayer.md +168 -50
- package/docs/ru/introduction.md +3 -3
- package/docs/ru/packages/intlayer/index.md +3 -3
- package/docs/ru/packages/next-intlayer/index.md +3 -3
- package/docs/ru/packages/react-intlayer/index.md +3 -3
- package/docs/zh/formatters.md +239 -0
- package/docs/zh/interest_of_intlayer.md +158 -48
- package/docs/zh/introduction.md +3 -3
- package/docs/zh/packages/intlayer/index.md +3 -3
- package/docs/zh/packages/next-intlayer/index.md +3 -3
- package/docs/zh/packages/react-intlayer/index.md +3 -3
- package/package.json +12 -12
- package/src/generated/docs.entry.ts +41 -0
|
@@ -24,7 +24,6 @@ slugs:
|
|
|
24
24
|
تتضمن كلا الحلقتين ثلاث مفاهيم رئيسية:
|
|
25
25
|
|
|
26
26
|
1. **إعلان المحتوى**: الطريقة لتعريف المحتوى القابل للترجمة في تطبيقك.
|
|
27
|
-
|
|
28
27
|
- يسمى `resource` في حالة `i18next`، إعلان المحتوى هو كائن JSON منظم يحتوي على أزواج مفتاح-قيمة للترجمات في لغة واحدة أو أكثر. راجع [وثائق i18next](https://www.i18next.com/translation-function/essentials) لمزيد من المعلومات.
|
|
29
28
|
- يسمى `content declaration file` في حالة `Intlayer`، يمكن أن يكون إعلان المحتوى ملف JSON أو JS أو TS يقوم بتصدير البيانات المنسقة. راجع [وثائق Intlayer](https://intlayer.org/fr/doc/concept/content) لمزيد من المعلومات.
|
|
30
29
|
|
|
@@ -213,8 +212,8 @@ const content = {
|
|
|
213
212
|
content: {
|
|
214
213
|
myTranslatedContent: t({
|
|
215
214
|
en: "Hello World",
|
|
216
|
-
fr: "Bonjour le monde",
|
|
217
215
|
es: "Hola Mundo",
|
|
216
|
+
fr: "Bonjour le monde",
|
|
218
217
|
}),
|
|
219
218
|
},
|
|
220
219
|
} satisfies Dictionary;
|
|
@@ -231,8 +230,8 @@ const content = {
|
|
|
231
230
|
content: {
|
|
232
231
|
myTranslatedContent: t({
|
|
233
232
|
en: "Hello World",
|
|
234
|
-
fr: "Bonjour le monde",
|
|
235
233
|
es: "Hola Mundo",
|
|
234
|
+
fr: "Bonjour le monde",
|
|
236
235
|
}),
|
|
237
236
|
},
|
|
238
237
|
};
|
|
@@ -246,8 +245,8 @@ module.exports = {
|
|
|
246
245
|
content: {
|
|
247
246
|
myTranslatedContent: t({
|
|
248
247
|
en: "Hello World",
|
|
249
|
-
fr: "Bonjour le monde",
|
|
250
248
|
es: "Hola Mundo",
|
|
249
|
+
fr: "Bonjour le monde",
|
|
251
250
|
}),
|
|
252
251
|
},
|
|
253
252
|
};
|
|
@@ -23,7 +23,6 @@ slugs:
|
|
|
23
23
|
يتشاركان ثلاث مفاهيم رئيسية:
|
|
24
24
|
|
|
25
25
|
1. **إعلان المحتوى**: الطريقة لتحديد المحتوى القابل للترجمة في تطبيقك.
|
|
26
|
-
|
|
27
26
|
- يُسمى `ملف إعلان المحتوى` في Intlayer، والذي يمكن أن يكون ملف JSON أو JS أو TS يقوم بتصدير البيانات المنظمة. راجع [وثائق Intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ar/concept/content.md) لمزيد من المعلومات.
|
|
28
27
|
- يُسمى `الرسائل` أو `رسائل اللغة` في next-intl، عادةً في ملفات JSON. راجع [وثائق next-intl](https://github.com/amannn/next-intl) لمزيد من المعلومات.
|
|
29
28
|
|
|
@@ -170,8 +169,8 @@ const content = {
|
|
|
170
169
|
content: {
|
|
171
170
|
helloWorld: t({
|
|
172
171
|
en: "Hello World",
|
|
173
|
-
fr: "Bonjour le monde",
|
|
174
172
|
es: "Hola Mundo",
|
|
173
|
+
fr: "Bonjour le monde",
|
|
175
174
|
}),
|
|
176
175
|
},
|
|
177
176
|
} satisfies Dictionary;
|
|
@@ -188,8 +187,8 @@ const content = {
|
|
|
188
187
|
content: {
|
|
189
188
|
helloWorld: t({
|
|
190
189
|
en: "Hello World",
|
|
191
|
-
fr: "Bonjour le monde",
|
|
192
190
|
es: "Hola Mundo",
|
|
191
|
+
fr: "Bonjour le monde",
|
|
193
192
|
}),
|
|
194
193
|
},
|
|
195
194
|
};
|
|
@@ -205,8 +204,8 @@ module.exports = {
|
|
|
205
204
|
content: {
|
|
206
205
|
helloWorld: t({
|
|
207
206
|
en: "Hello World",
|
|
208
|
-
fr: "Bonjour le monde",
|
|
209
207
|
es: "Hola Mundo",
|
|
208
|
+
fr: "Bonjour le monde",
|
|
210
209
|
}),
|
|
211
210
|
},
|
|
212
211
|
};
|
|
@@ -118,8 +118,8 @@ const content = {
|
|
|
118
118
|
// كل استدعاء لـ t() يعلن عن حقل قابل للترجمة
|
|
119
119
|
helloWorld: t({
|
|
120
120
|
en: "Hello World",
|
|
121
|
-
fr: "Bonjour le monde",
|
|
122
121
|
es: "Hola Mundo",
|
|
122
|
+
fr: "Bonjour le monde",
|
|
123
123
|
}),
|
|
124
124
|
description: t({
|
|
125
125
|
en: "This is a description",
|
|
@@ -24,7 +24,6 @@ Sowohl next-i18next als auch Intlayer sind Open-Source-Internationalisierungs- (
|
|
|
24
24
|
Beide Lösungen umfassen drei Hauptkonzepte:
|
|
25
25
|
|
|
26
26
|
1. **Inhaltsdeklaration**: Die Methode zur Definition des übersetzbaren Inhalts Ihrer Anwendung.
|
|
27
|
-
|
|
28
27
|
- Im Falle von `i18next` als `resource` bezeichnet, ist die Inhaltsdeklaration ein strukturiertes JSON-Objekt, das Schlüssel-Wert-Paare für Übersetzungen in einer oder mehreren Sprachen enthält. Siehe [i18next-Dokumentation](https://www.i18next.com/translation-function/essentials) für weitere Informationen.
|
|
29
28
|
- Im Falle von `Intlayer` als `content declaration file` bezeichnet, kann die Inhaltsdeklaration eine JSON-, JS- oder TS-Datei sein, die die strukturierten Daten exportiert. Siehe [Intlayer-Dokumentation](https://intlayer.org/fr/doc/concept/content) für weitere Informationen.
|
|
30
29
|
|
|
@@ -213,8 +212,8 @@ const content = {
|
|
|
213
212
|
content: {
|
|
214
213
|
myTranslatedContent: t({
|
|
215
214
|
en: "Hello World",
|
|
216
|
-
fr: "Bonjour le monde",
|
|
217
215
|
es: "Hola Mundo",
|
|
216
|
+
fr: "Bonjour le monde",
|
|
218
217
|
}),
|
|
219
218
|
},
|
|
220
219
|
} satisfies Dictionary;
|
|
@@ -231,8 +230,8 @@ const content = {
|
|
|
231
230
|
content: {
|
|
232
231
|
myTranslatedContent: t({
|
|
233
232
|
en: "Hello World",
|
|
234
|
-
fr: "Bonjour le monde",
|
|
235
233
|
es: "Hola Mundo",
|
|
234
|
+
fr: "Bonjour le monde",
|
|
236
235
|
}),
|
|
237
236
|
},
|
|
238
237
|
};
|
|
@@ -246,8 +245,8 @@ module.exports = {
|
|
|
246
245
|
content: {
|
|
247
246
|
myTranslatedContent: t({
|
|
248
247
|
en: "Hello World",
|
|
249
|
-
fr: "Bonjour le monde",
|
|
250
248
|
es: "Hola Mundo",
|
|
249
|
+
fr: "Bonjour le monde",
|
|
251
250
|
}),
|
|
252
251
|
},
|
|
253
252
|
};
|
|
@@ -118,8 +118,8 @@ const content = {
|
|
|
118
118
|
// Jeder Aufruf von t() erklärt ein übersetzbares Feld
|
|
119
119
|
helloWorld: t({
|
|
120
120
|
en: "Hello World",
|
|
121
|
-
fr: "Bonjour le monde",
|
|
122
121
|
es: "Hola Mundo",
|
|
122
|
+
fr: "Bonjour le monde",
|
|
123
123
|
}),
|
|
124
124
|
description: t({
|
|
125
125
|
en: "This is a description",
|
|
@@ -24,7 +24,6 @@ Both next-i18next and Intlayer are open-source internationalization (i18n) frame
|
|
|
24
24
|
Both solutions include three principal notions:
|
|
25
25
|
|
|
26
26
|
1. **Dictionary**: The method for defining the translatable content of your application.
|
|
27
|
-
|
|
28
27
|
- Named `resource` in the case of `i18next`, the content declaration is a structured JSON object containing key-value pairs for translations in one or more languages. See [i18next documentation](https://www.i18next.com/translation-function/essentials) for more information.
|
|
29
28
|
- Named `content declaration file` in the case of `Intlayer`, the content declaration can be a JSON, JS, or TS file exporting the structured data. See [Intlayer documentation](https://intlayer.org/fr/doc/concept/content) for more information.
|
|
30
29
|
|
|
@@ -213,8 +212,8 @@ const content = {
|
|
|
213
212
|
content: {
|
|
214
213
|
myTranslatedContent: t({
|
|
215
214
|
en: "Hello World",
|
|
216
|
-
fr: "Bonjour le monde",
|
|
217
215
|
es: "Hola Mundo",
|
|
216
|
+
fr: "Bonjour le monde",
|
|
218
217
|
}),
|
|
219
218
|
},
|
|
220
219
|
} satisfies Dictionary;
|
|
@@ -231,8 +230,8 @@ const content = {
|
|
|
231
230
|
content: {
|
|
232
231
|
myTranslatedContent: t({
|
|
233
232
|
en: "Hello World",
|
|
234
|
-
fr: "Bonjour le monde",
|
|
235
233
|
es: "Hola Mundo",
|
|
234
|
+
fr: "Bonjour le monde",
|
|
236
235
|
}),
|
|
237
236
|
},
|
|
238
237
|
};
|
|
@@ -246,8 +245,8 @@ module.exports = {
|
|
|
246
245
|
content: {
|
|
247
246
|
myTranslatedContent: t({
|
|
248
247
|
en: "Hello World",
|
|
249
|
-
fr: "Bonjour le monde",
|
|
250
248
|
es: "Hola Mundo",
|
|
249
|
+
fr: "Bonjour le monde",
|
|
251
250
|
}),
|
|
252
251
|
},
|
|
253
252
|
};
|
|
@@ -23,7 +23,6 @@ Both next-intl and Intlayer are open-source internationalization (i18n) framewor
|
|
|
23
23
|
They share three principal notions:
|
|
24
24
|
|
|
25
25
|
1. **Dictionary**: The method for defining the translatable content of your application.
|
|
26
|
-
|
|
27
26
|
- Named `content declaration file` in Intlayer, which can be a JSON, JS, or TS file exporting the structured data. See [Intlayer documentation](https://intlayer.org/fr/doc/concept/content) for more information.
|
|
28
27
|
- Named `messages` or `locale messages` in next-intl, usually in JSON files. See [next-intl documentation](https://github.com/amannn/next-intl) for more information.
|
|
29
28
|
|
|
@@ -170,8 +169,8 @@ const content = {
|
|
|
170
169
|
content: {
|
|
171
170
|
helloWorld: t({
|
|
172
171
|
en: "Hello World",
|
|
173
|
-
fr: "Bonjour le monde",
|
|
174
172
|
es: "Hola Mundo",
|
|
173
|
+
fr: "Bonjour le monde",
|
|
175
174
|
}),
|
|
176
175
|
},
|
|
177
176
|
} satisfies Dictionary;
|
|
@@ -188,8 +187,8 @@ const content = {
|
|
|
188
187
|
content: {
|
|
189
188
|
helloWorld: t({
|
|
190
189
|
en: "Hello World",
|
|
191
|
-
fr: "Bonjour le monde",
|
|
192
190
|
es: "Hola Mundo",
|
|
191
|
+
fr: "Bonjour le monde",
|
|
193
192
|
}),
|
|
194
193
|
},
|
|
195
194
|
};
|
|
@@ -205,8 +204,8 @@ module.exports = {
|
|
|
205
204
|
content: {
|
|
206
205
|
helloWorld: t({
|
|
207
206
|
en: "Hello World",
|
|
208
|
-
fr: "Bonjour le monde",
|
|
209
207
|
es: "Hola Mundo",
|
|
208
|
+
fr: "Bonjour le monde",
|
|
210
209
|
}),
|
|
211
210
|
},
|
|
212
211
|
};
|
|
@@ -247,8 +247,8 @@ const content = {
|
|
|
247
247
|
// Each "t" call is a separate translation node
|
|
248
248
|
heading: t({
|
|
249
249
|
en: "Hello World",
|
|
250
|
-
fr: "Bonjour le monde",
|
|
251
250
|
es: "Hola Mundo",
|
|
251
|
+
fr: "Bonjour le monde",
|
|
252
252
|
}),
|
|
253
253
|
description: t({
|
|
254
254
|
en: "My i18n description text...",
|
|
@@ -118,8 +118,8 @@ const content = {
|
|
|
118
118
|
// Each call to t() declares a translatable field
|
|
119
119
|
helloWorld: t({
|
|
120
120
|
en: "Hello World",
|
|
121
|
-
fr: "Bonjour le monde",
|
|
122
121
|
es: "Hola Mundo",
|
|
122
|
+
fr: "Bonjour le monde",
|
|
123
123
|
}),
|
|
124
124
|
description: t({
|
|
125
125
|
en: "This is a description",
|
|
@@ -24,7 +24,6 @@ Both next-i18next and Intlayer are open-source internationalization (i18n) frame
|
|
|
24
24
|
Both solutions include three principal notions:
|
|
25
25
|
|
|
26
26
|
1. **Dictionary**: The method for defining the translatable content of your application.
|
|
27
|
-
|
|
28
27
|
- Named `resource` in the case of `i18next`, the content declaration is a structured JSON object containing key-value pairs for translations in one or more languages. See [i18next documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/translation-function/essentials.md) for more information.
|
|
29
28
|
- Named `content declaration file` in the case of `Intlayer`, the content declaration can be a JSON, JS, or TS file exporting the structured data. See [Intlayer documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/concept/content.md) for more information.
|
|
30
29
|
|
|
@@ -209,8 +208,8 @@ const content = {
|
|
|
209
208
|
content: {
|
|
210
209
|
myTranslatedContent: t({
|
|
211
210
|
en: "Hello World",
|
|
212
|
-
fr: "Bonjour le monde",
|
|
213
211
|
es: "Hola Mundo",
|
|
212
|
+
fr: "Bonjour le monde",
|
|
214
213
|
}),
|
|
215
214
|
},
|
|
216
215
|
} satisfies Dictionary;
|
|
@@ -227,8 +226,8 @@ const content = {
|
|
|
227
226
|
content: {
|
|
228
227
|
myTranslatedContent: t({
|
|
229
228
|
en: "Hello World",
|
|
230
|
-
fr: "Bonjour le monde",
|
|
231
229
|
es: "Hola Mundo",
|
|
230
|
+
fr: "Bonjour le monde",
|
|
232
231
|
}),
|
|
233
232
|
},
|
|
234
233
|
};
|
|
@@ -242,8 +241,8 @@ module.exports = {
|
|
|
242
241
|
content: {
|
|
243
242
|
myTranslatedContent: t({
|
|
244
243
|
en: "Hello World",
|
|
245
|
-
fr: "Bonjour le monde",
|
|
246
244
|
es: "Hola Mundo",
|
|
245
|
+
fr: "Bonjour le monde",
|
|
247
246
|
}),
|
|
248
247
|
},
|
|
249
248
|
};
|
|
@@ -23,7 +23,6 @@ Both next-intl and Intlayer are open-source internationalization (i18n) framewor
|
|
|
23
23
|
They share three principal notions:
|
|
24
24
|
|
|
25
25
|
1. **Dictionary**: The method for defining the translatable content of your application.
|
|
26
|
-
|
|
27
26
|
- Named `content declaration file` in Intlayer, which can be a JSON, JS, or TS file exporting the structured data. See [Intlayer documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/concept/content) for more information.
|
|
28
27
|
- Named `messages` or `locale messages` in next-intl, usually in JSON files. See [next-intl documentation](https://github.com/amannn/next-intl) for more information.
|
|
29
28
|
|
|
@@ -170,8 +169,8 @@ const content = {
|
|
|
170
169
|
content: {
|
|
171
170
|
helloWorld: t({
|
|
172
171
|
en: "Hello World",
|
|
173
|
-
fr: "Bonjour le monde",
|
|
174
172
|
es: "Hola Mundo",
|
|
173
|
+
fr: "Bonjour le monde",
|
|
175
174
|
}),
|
|
176
175
|
},
|
|
177
176
|
} satisfies Dictionary;
|
|
@@ -188,8 +187,8 @@ const content = {
|
|
|
188
187
|
content: {
|
|
189
188
|
helloWorld: t({
|
|
190
189
|
en: "Hello World",
|
|
191
|
-
fr: "Bonjour le monde",
|
|
192
190
|
es: "Hola Mundo",
|
|
191
|
+
fr: "Bonjour le monde",
|
|
193
192
|
}),
|
|
194
193
|
},
|
|
195
194
|
};
|
|
@@ -205,8 +204,8 @@ module.exports = {
|
|
|
205
204
|
content: {
|
|
206
205
|
helloWorld: t({
|
|
207
206
|
en: "Hello World",
|
|
208
|
-
fr: "Bonjour le monde",
|
|
209
207
|
es: "Hola Mundo",
|
|
208
|
+
fr: "Bonjour le monde",
|
|
210
209
|
}),
|
|
211
210
|
},
|
|
212
211
|
};
|
|
@@ -247,8 +247,8 @@ const content = {
|
|
|
247
247
|
// Each "t" call is a separate translation node
|
|
248
248
|
heading: t({
|
|
249
249
|
en: "Hello World",
|
|
250
|
-
fr: "Bonjour le monde",
|
|
251
250
|
es: "Hola Mundo",
|
|
251
|
+
fr: "Bonjour le monde",
|
|
252
252
|
}),
|
|
253
253
|
description: t({
|
|
254
254
|
en: "My i18n description text...",
|
|
@@ -118,8 +118,8 @@ const content = {
|
|
|
118
118
|
// Each call to t() declares a translatable field
|
|
119
119
|
helloWorld: t({
|
|
120
120
|
en: "Hello World",
|
|
121
|
-
fr: "Bonjour le monde",
|
|
122
121
|
es: "Hola Mundo",
|
|
122
|
+
fr: "Bonjour le monde",
|
|
123
123
|
}),
|
|
124
124
|
description: t({
|
|
125
125
|
en: "This is a description",
|
|
@@ -24,7 +24,6 @@ Tanto next-i18next como Intlayer son frameworks de internacionalización (i18n)
|
|
|
24
24
|
Ambas soluciones incluyen tres nociones principales:
|
|
25
25
|
|
|
26
26
|
1. **Declaración de Contenido**: El método para definir el contenido traducible de tu aplicación.
|
|
27
|
-
|
|
28
27
|
- Nombrado `resource` en el caso de `i18next`, la declaración de contenido es un objeto JSON estructurado que contiene pares clave-valor para traducciones en uno o varios idiomas. Consulta la [documentación de i18next](https://www.i18next.com/translation-function/essentials) para más información.
|
|
29
28
|
- Nombrado `archivo de declaración de contenido` en el caso de `Intlayer`, la declaración de contenido puede ser un archivo JSON, JS o TS que exporta los datos estructurados. Consulta la [documentación de Intlayer](https://intlayer.org/fr/doc/concept/content) para más información.
|
|
30
29
|
|
|
@@ -213,8 +212,8 @@ const content = {
|
|
|
213
212
|
content: {
|
|
214
213
|
myTranslatedContent: t({
|
|
215
214
|
en: "Hello World",
|
|
216
|
-
fr: "Bonjour le monde",
|
|
217
215
|
es: "Hola Mundo",
|
|
216
|
+
fr: "Bonjour le monde",
|
|
218
217
|
}),
|
|
219
218
|
},
|
|
220
219
|
} satisfies Dictionary;
|
|
@@ -231,8 +230,8 @@ const content = {
|
|
|
231
230
|
content: {
|
|
232
231
|
myTranslatedContent: t({
|
|
233
232
|
en: "Hello World",
|
|
234
|
-
fr: "Bonjour le monde",
|
|
235
233
|
es: "Hola Mundo",
|
|
234
|
+
fr: "Bonjour le monde",
|
|
236
235
|
}),
|
|
237
236
|
},
|
|
238
237
|
};
|
|
@@ -246,8 +245,8 @@ module.exports = {
|
|
|
246
245
|
content: {
|
|
247
246
|
myTranslatedContent: t({
|
|
248
247
|
en: "Hello World",
|
|
249
|
-
fr: "Bonjour le monde",
|
|
250
248
|
es: "Hola Mundo",
|
|
249
|
+
fr: "Bonjour le monde",
|
|
251
250
|
}),
|
|
252
251
|
},
|
|
253
252
|
};
|
|
@@ -23,7 +23,6 @@ Tanto next-intl como Intlayer son frameworks de internacionalización (i18n) de
|
|
|
23
23
|
Comparten tres nociones principales:
|
|
24
24
|
|
|
25
25
|
1. **Declaración de Contenido**: El método para definir el contenido traducible de tu aplicación.
|
|
26
|
-
|
|
27
26
|
- Nombrada `content declaration file` en Intlayer, que puede ser un archivo JSON, JS o TS que exporta datos estructurados. Consulta la [documentación de Intlayer](https://intlayer.org/fr/doc/concept/content) para más información.
|
|
28
27
|
- Nombrada `messages` o `locale messages` en next-intl, usualmente en archivos JSON. Consulta la [documentación de next-intl](https://github.com/amannn/next-intl) para más información.
|
|
29
28
|
|
|
@@ -170,8 +169,8 @@ const content = {
|
|
|
170
169
|
content: {
|
|
171
170
|
helloWorld: t({
|
|
172
171
|
en: "Hello World",
|
|
173
|
-
fr: "Bonjour le monde",
|
|
174
172
|
es: "Hola Mundo",
|
|
173
|
+
fr: "Bonjour le monde",
|
|
175
174
|
}),
|
|
176
175
|
},
|
|
177
176
|
} satisfies Dictionary;
|
|
@@ -188,8 +187,8 @@ const content = {
|
|
|
188
187
|
content: {
|
|
189
188
|
helloWorld: t({
|
|
190
189
|
en: "Hello World",
|
|
191
|
-
fr: "Bonjour le monde",
|
|
192
190
|
es: "Hola Mundo",
|
|
191
|
+
fr: "Bonjour le monde",
|
|
193
192
|
}),
|
|
194
193
|
},
|
|
195
194
|
};
|
|
@@ -205,8 +204,8 @@ module.exports = {
|
|
|
205
204
|
content: {
|
|
206
205
|
helloWorld: t({
|
|
207
206
|
en: "Hello World",
|
|
208
|
-
fr: "Bonjour le monde",
|
|
209
207
|
es: "Hola Mundo",
|
|
208
|
+
fr: "Bonjour le monde",
|
|
210
209
|
}),
|
|
211
210
|
},
|
|
212
211
|
};
|
|
@@ -247,8 +247,8 @@ const content = {
|
|
|
247
247
|
// Cada llamada "t" es un nodo de traducción separado
|
|
248
248
|
heading: t({
|
|
249
249
|
en: "Hello World",
|
|
250
|
-
fr: "Bonjour le monde",
|
|
251
250
|
es: "Hola Mundo",
|
|
251
|
+
fr: "Bonjour le monde",
|
|
252
252
|
}),
|
|
253
253
|
description: t({
|
|
254
254
|
en: "My i18n description text...",
|
|
@@ -118,8 +118,8 @@ const content = {
|
|
|
118
118
|
// Cada llamada a t() declara un campo traducible
|
|
119
119
|
helloWorld: t({
|
|
120
120
|
en: "Hello World",
|
|
121
|
-
fr: "Bonjour le monde",
|
|
122
121
|
es: "Hola Mundo",
|
|
122
|
+
fr: "Bonjour le monde",
|
|
123
123
|
}),
|
|
124
124
|
description: t({
|
|
125
125
|
en: "This is a description",
|
|
@@ -24,7 +24,6 @@ Les frameworks next-i18next et Intlayer sont des frameworks d'internationalisati
|
|
|
24
24
|
Les deux solutions incluent trois notions principales :
|
|
25
25
|
|
|
26
26
|
1. **Déclaration de Contenu** : La méthode pour définir le contenu traduisible de votre application.
|
|
27
|
-
|
|
28
27
|
- Nommée `resource` dans le cas de `i18next`, la déclaration de contenu est un objet JSON structuré contenant des paires clé-valeur pour les traductions dans une ou plusieurs langues. Voir [documentation i18next](https://www.i18next.com/translation-function/essentials) pour plus d'informations.
|
|
29
28
|
- Nommée `content declaration file` dans le cas de `Intlayer`, la déclaration de contenu peut être un fichier JSON, JS ou TS exportant les données structurées. Voir [documentation Intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/doc/concept/content) pour plus d'informations.
|
|
30
29
|
|
|
@@ -213,8 +212,8 @@ const content = {
|
|
|
213
212
|
content: {
|
|
214
213
|
myTranslatedContent: t({
|
|
215
214
|
en: "Hello World",
|
|
216
|
-
fr: "Bonjour le monde",
|
|
217
215
|
es: "Hola Mundo",
|
|
216
|
+
fr: "Bonjour le monde",
|
|
218
217
|
}),
|
|
219
218
|
},
|
|
220
219
|
} satisfies Dictionary;
|
|
@@ -231,8 +230,8 @@ const content = {
|
|
|
231
230
|
content: {
|
|
232
231
|
myTranslatedContent: t({
|
|
233
232
|
en: "Hello World",
|
|
234
|
-
fr: "Bonjour le monde",
|
|
235
233
|
es: "Hola Mundo",
|
|
234
|
+
fr: "Bonjour le monde",
|
|
236
235
|
}),
|
|
237
236
|
},
|
|
238
237
|
};
|
|
@@ -246,8 +245,8 @@ module.exports = {
|
|
|
246
245
|
content: {
|
|
247
246
|
myTranslatedContent: t({
|
|
248
247
|
en: "Hello World",
|
|
249
|
-
fr: "Bonjour le monde",
|
|
250
248
|
es: "Hola Mundo",
|
|
249
|
+
fr: "Bonjour le monde",
|
|
251
250
|
}),
|
|
252
251
|
},
|
|
253
252
|
};
|
|
@@ -23,7 +23,6 @@ Les deux frameworks open-source next-intl et Intlayer sont conçus pour les appl
|
|
|
23
23
|
Ils partagent trois notions principales :
|
|
24
24
|
|
|
25
25
|
1. **Déclaration de Contenu** : La méthode pour définir le contenu traduisible de votre application.
|
|
26
|
-
|
|
27
26
|
- Appelé `fichier de déclaration de contenu` dans Intlayer, qui peut être un fichier JSON, JS ou TS exportant des données structurées. Consultez la [documentation d’Intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/concept/content.md) pour plus d'informations.
|
|
28
27
|
- Appelé `messages` ou `locale messages` dans next-intl, généralement dans des fichiers JSON. Consultez la [documentation de next-intl](https://github.com/amannn/next-intl) pour plus d'informations.
|
|
29
28
|
|
|
@@ -170,8 +169,8 @@ const content = {
|
|
|
170
169
|
content: {
|
|
171
170
|
helloWorld: t({
|
|
172
171
|
en: "Hello World",
|
|
173
|
-
fr: "Bonjour le monde",
|
|
174
172
|
es: "Hola Mundo",
|
|
173
|
+
fr: "Bonjour le monde",
|
|
175
174
|
}),
|
|
176
175
|
},
|
|
177
176
|
} satisfies Dictionary;
|
|
@@ -188,8 +187,8 @@ const content = {
|
|
|
188
187
|
content: {
|
|
189
188
|
helloWorld: t({
|
|
190
189
|
en: "Hello World",
|
|
191
|
-
fr: "Bonjour le monde",
|
|
192
190
|
es: "Hola Mundo",
|
|
191
|
+
fr: "Bonjour le monde",
|
|
193
192
|
}),
|
|
194
193
|
},
|
|
195
194
|
};
|
|
@@ -205,8 +204,8 @@ module.exports = {
|
|
|
205
204
|
content: {
|
|
206
205
|
helloWorld: t({
|
|
207
206
|
en: "Hello World",
|
|
208
|
-
fr: "Bonjour le monde",
|
|
209
207
|
es: "Hola Mundo",
|
|
208
|
+
fr: "Bonjour le monde",
|
|
210
209
|
}),
|
|
211
210
|
},
|
|
212
211
|
};
|
|
@@ -247,8 +247,8 @@ const content = {
|
|
|
247
247
|
// Chaque appel "t" est un nœud de traduction séparé
|
|
248
248
|
heading: t({
|
|
249
249
|
en: "Hello World",
|
|
250
|
-
fr: "Bonjour le monde",
|
|
251
250
|
es: "Hola Mundo",
|
|
251
|
+
fr: "Bonjour le monde",
|
|
252
252
|
}),
|
|
253
253
|
description: t({
|
|
254
254
|
en: "My i18n description text...",
|
|
@@ -118,8 +118,8 @@ const content = {
|
|
|
118
118
|
// Chaque appel à t() déclare un champ traduisible
|
|
119
119
|
helloWorld: t({
|
|
120
120
|
en: "Hello World",
|
|
121
|
-
fr: "Bonjour le monde",
|
|
122
121
|
es: "Hola Mundo",
|
|
122
|
+
fr: "Bonjour le monde",
|
|
123
123
|
}),
|
|
124
124
|
description: t({
|
|
125
125
|
en: "This is a description",
|
|
@@ -24,7 +24,6 @@ next-i18next और Intlayer दोनों ओपन-सोर्स अंत
|
|
|
24
24
|
दोनों समाधानों में तीन मुख्य अवधारणाएँ शामिल हैं:
|
|
25
25
|
|
|
26
26
|
1. **सामग्री घोषणा**: आपके अनुप्रयोग की अनुवाद योग्य सामग्री को परिभाषित करने की विधि।
|
|
27
|
-
|
|
28
27
|
- `i18next` के मामले में `resource` के नाम से जाना जाता है, सामग्री घोषणा एक संरचित JSON ऑब्जेक्ट है जिसमें एक या अधिक भाषाओं में अनुवाद के लिए कुंजी-मूल्य जोड़ होते हैं। अधिक जानकारी के लिए [i18next डॉक्यूमेंटेशन](https://www.i18next.com/translation-function/essentials) देखें।
|
|
29
28
|
- `Intlayer` के मामले में `content declaration file` के नाम से जाना जाता है, सामग्री घोषणा एक JSON, JS, या TS फ़ाइल हो सकती है जो संरचित डेटा को निर्यात करती है। अधिक जानकारी के लिए [Intlayer डॉक्यूमेंटेशन](https://intlayer.org/fr/doc/concept/content) देखें।
|
|
30
29
|
|
|
@@ -213,8 +212,8 @@ const content = {
|
|
|
213
212
|
content: {
|
|
214
213
|
myTranslatedContent: t({
|
|
215
214
|
en: "Hello World",
|
|
216
|
-
fr: "Bonjour le monde",
|
|
217
215
|
es: "Hola Mundo",
|
|
216
|
+
fr: "Bonjour le monde",
|
|
218
217
|
}),
|
|
219
218
|
},
|
|
220
219
|
} satisfies Dictionary;
|
|
@@ -231,8 +230,8 @@ const content = {
|
|
|
231
230
|
content: {
|
|
232
231
|
myTranslatedContent: t({
|
|
233
232
|
en: "Hello World",
|
|
234
|
-
fr: "Bonjour le monde",
|
|
235
233
|
es: "Hola Mundo",
|
|
234
|
+
fr: "Bonjour le monde",
|
|
236
235
|
}),
|
|
237
236
|
},
|
|
238
237
|
};
|
|
@@ -246,8 +245,8 @@ module.exports = {
|
|
|
246
245
|
content: {
|
|
247
246
|
myTranslatedContent: t({
|
|
248
247
|
en: "Hello World",
|
|
249
|
-
fr: "Bonjour le monde",
|
|
250
248
|
es: "Hola Mundo",
|
|
249
|
+
fr: "Bonjour le monde",
|
|
251
250
|
}),
|
|
252
251
|
},
|
|
253
252
|
};
|
|
@@ -23,7 +23,6 @@ next-intl और Intlayer दोनों ओपन-सोर्स अंतर
|
|
|
23
23
|
ये तीन मुख्य अवधारणाओं को साझा करते हैं:
|
|
24
24
|
|
|
25
25
|
1. **सामग्री घोषणा**: आपकी एप्लिकेशन की अनुवादनीय सामग्री को परिभाषित करने की विधि।
|
|
26
|
-
|
|
27
26
|
- Intlayer में इसे `सामग्री घोषणा फ़ाइल` कहा जाता है, जो JSON, JS, या TS फ़ाइल हो सकती है जो संरचित डेटा निर्यात करती है। अधिक जानकारी के लिए [Intlayer दस्तावेज़](https://intlayer.org/fr/doc/concept/content) देखें।
|
|
28
27
|
- next-intl में इसे `messages` या `locale messages` कहा जाता है, जो आमतौर पर JSON फ़ाइलों में होती हैं। अधिक जानकारी के लिए [next-intl दस्तावेज़](https://github.com/amannn/next-intl) देखें।
|
|
29
28
|
|
|
@@ -170,8 +169,8 @@ const content = {
|
|
|
170
169
|
content: {
|
|
171
170
|
helloWorld: t({
|
|
172
171
|
en: "Hello World",
|
|
173
|
-
fr: "Bonjour le monde",
|
|
174
172
|
es: "Hola Mundo",
|
|
173
|
+
fr: "Bonjour le monde",
|
|
175
174
|
}),
|
|
176
175
|
},
|
|
177
176
|
} satisfies Dictionary;
|
|
@@ -188,8 +187,8 @@ const content = {
|
|
|
188
187
|
content: {
|
|
189
188
|
helloWorld: t({
|
|
190
189
|
en: "Hello World",
|
|
191
|
-
fr: "Bonjour le monde",
|
|
192
190
|
es: "Hola Mundo",
|
|
191
|
+
fr: "Bonjour le monde",
|
|
193
192
|
}),
|
|
194
193
|
},
|
|
195
194
|
};
|
|
@@ -205,8 +204,8 @@ module.exports = {
|
|
|
205
204
|
content: {
|
|
206
205
|
helloWorld: t({
|
|
207
206
|
en: "Hello World",
|
|
208
|
-
fr: "Bonjour le monde",
|
|
209
207
|
es: "Hola Mundo",
|
|
208
|
+
fr: "Bonjour le monde",
|
|
210
209
|
}),
|
|
211
210
|
},
|
|
212
211
|
};
|
|
@@ -247,8 +247,8 @@ const content = {
|
|
|
247
247
|
// प्रत्येक "t" कॉल एक अलग अनुवाद नोड है
|
|
248
248
|
heading: t({
|
|
249
249
|
en: "Hello World",
|
|
250
|
-
fr: "Bonjour le monde",
|
|
251
250
|
es: "Hola Mundo",
|
|
251
|
+
fr: "Bonjour le monde",
|
|
252
252
|
}),
|
|
253
253
|
description: t({
|
|
254
254
|
en: "My i18n description text...",
|
|
@@ -118,8 +118,8 @@ const content = {
|
|
|
118
118
|
// t() का प्रत्येक कॉल एक अनुवाद योग्य फ़ील्ड घोषित करता है
|
|
119
119
|
helloWorld: t({
|
|
120
120
|
en: "Hello World",
|
|
121
|
-
fr: "Bonjour le monde",
|
|
122
121
|
es: "Hola Mundo",
|
|
122
|
+
fr: "Bonjour le monde",
|
|
123
123
|
}),
|
|
124
124
|
description: t({
|
|
125
125
|
en: "This is a description",
|