@intlayer/docs 8.0.1 → 8.0.2

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.
Files changed (123) hide show
  1. package/docs/ar/dictionary/html.md +4 -2
  2. package/docs/ar/dictionary/insertion.md +113 -59
  3. package/docs/ar/intlayer_with_adonisjs.md +10 -0
  4. package/docs/ar/intlayer_with_express.md +10 -0
  5. package/docs/ar/intlayer_with_fastify.md +10 -0
  6. package/docs/ar/intlayer_with_hono.md +10 -0
  7. package/docs/ar/intlayer_with_nestjs.md +11 -1
  8. package/docs/de/dictionary/html.md +4 -2
  9. package/docs/de/dictionary/insertion.md +119 -18
  10. package/docs/de/intlayer_with_adonisjs.md +10 -0
  11. package/docs/de/intlayer_with_express.md +10 -0
  12. package/docs/de/intlayer_with_fastify.md +10 -0
  13. package/docs/de/intlayer_with_hono.md +10 -0
  14. package/docs/de/intlayer_with_nestjs.md +11 -1
  15. package/docs/en/dictionary/html.md +3 -1
  16. package/docs/en/dictionary/insertion.md +119 -65
  17. package/docs/en/intlayer_with_adonisjs.md +10 -0
  18. package/docs/en/intlayer_with_express.md +10 -0
  19. package/docs/en/intlayer_with_fastify.md +10 -0
  20. package/docs/en/intlayer_with_hono.md +10 -0
  21. package/docs/en/intlayer_with_nestjs.md +1 -1
  22. package/docs/en-GB/dictionary/html.md +4 -2
  23. package/docs/en-GB/dictionary/insertion.md +119 -65
  24. package/docs/en-GB/intlayer_with_adonisjs.md +10 -0
  25. package/docs/en-GB/intlayer_with_express.md +10 -0
  26. package/docs/en-GB/intlayer_with_fastify.md +10 -0
  27. package/docs/en-GB/intlayer_with_hono.md +10 -0
  28. package/docs/en-GB/intlayer_with_nestjs.md +11 -1
  29. package/docs/es/dictionary/html.md +4 -2
  30. package/docs/es/dictionary/insertion.md +113 -59
  31. package/docs/es/intlayer_with_adonisjs.md +10 -0
  32. package/docs/es/intlayer_with_express.md +10 -0
  33. package/docs/es/intlayer_with_fastify.md +10 -0
  34. package/docs/es/intlayer_with_hono.md +10 -0
  35. package/docs/es/intlayer_with_nestjs.md +11 -1
  36. package/docs/fr/dictionary/html.md +4 -2
  37. package/docs/fr/dictionary/insertion.md +113 -59
  38. package/docs/fr/intlayer_with_adonisjs.md +10 -0
  39. package/docs/fr/intlayer_with_express.md +10 -0
  40. package/docs/fr/intlayer_with_fastify.md +10 -0
  41. package/docs/fr/intlayer_with_hono.md +10 -0
  42. package/docs/fr/intlayer_with_nestjs.md +11 -1
  43. package/docs/hi/dictionary/html.md +4 -2
  44. package/docs/hi/dictionary/insertion.md +119 -17
  45. package/docs/hi/intlayer_with_adonisjs.md +10 -0
  46. package/docs/hi/intlayer_with_express.md +10 -0
  47. package/docs/hi/intlayer_with_fastify.md +10 -0
  48. package/docs/hi/intlayer_with_hono.md +10 -0
  49. package/docs/hi/intlayer_with_nestjs.md +11 -1
  50. package/docs/id/dictionary/html.md +4 -2
  51. package/docs/id/dictionary/insertion.md +119 -17
  52. package/docs/id/intlayer_with_adonisjs.md +10 -0
  53. package/docs/id/intlayer_with_express.md +10 -0
  54. package/docs/id/intlayer_with_fastify.md +10 -0
  55. package/docs/id/intlayer_with_hono.md +10 -0
  56. package/docs/it/dictionary/html.md +4 -2
  57. package/docs/it/dictionary/insertion.md +113 -59
  58. package/docs/it/intlayer_with_adonisjs.md +10 -0
  59. package/docs/it/intlayer_with_express.md +10 -0
  60. package/docs/it/intlayer_with_fastify.md +10 -0
  61. package/docs/it/intlayer_with_hono.md +10 -0
  62. package/docs/it/intlayer_with_nestjs.md +11 -1
  63. package/docs/ja/dictionary/html.md +4 -2
  64. package/docs/ja/dictionary/insertion.md +119 -65
  65. package/docs/ja/intlayer_with_adonisjs.md +10 -0
  66. package/docs/ja/intlayer_with_express.md +10 -0
  67. package/docs/ja/intlayer_with_fastify.md +10 -0
  68. package/docs/ja/intlayer_with_hono.md +10 -0
  69. package/docs/ja/intlayer_with_nestjs.md +11 -1
  70. package/docs/ko/dictionary/html.md +4 -2
  71. package/docs/ko/dictionary/insertion.md +119 -65
  72. package/docs/ko/intlayer_with_adonisjs.md +10 -0
  73. package/docs/ko/intlayer_with_express.md +10 -0
  74. package/docs/ko/intlayer_with_fastify.md +10 -0
  75. package/docs/ko/intlayer_with_hono.md +10 -0
  76. package/docs/ko/intlayer_with_nestjs.md +11 -1
  77. package/docs/pl/dictionary/html.md +4 -2
  78. package/docs/pl/dictionary/insertion.md +113 -15
  79. package/docs/pl/intlayer_with_adonisjs.md +10 -0
  80. package/docs/pl/intlayer_with_express.md +10 -0
  81. package/docs/pl/intlayer_with_fastify.md +10 -0
  82. package/docs/pl/intlayer_with_hono.md +10 -0
  83. package/docs/pt/dictionary/html.md +4 -2
  84. package/docs/pt/dictionary/insertion.md +119 -18
  85. package/docs/pt/intlayer_with_adonisjs.md +10 -0
  86. package/docs/pt/intlayer_with_express.md +10 -0
  87. package/docs/pt/intlayer_with_fastify.md +10 -0
  88. package/docs/pt/intlayer_with_hono.md +10 -0
  89. package/docs/pt/intlayer_with_nestjs.md +11 -1
  90. package/docs/ru/dictionary/html.md +4 -2
  91. package/docs/ru/dictionary/insertion.md +113 -59
  92. package/docs/ru/intlayer_with_adonisjs.md +10 -0
  93. package/docs/ru/intlayer_with_express.md +10 -0
  94. package/docs/ru/intlayer_with_fastify.md +10 -0
  95. package/docs/ru/intlayer_with_hono.md +10 -0
  96. package/docs/ru/intlayer_with_nestjs.md +11 -1
  97. package/docs/tr/dictionary/html.md +4 -2
  98. package/docs/tr/dictionary/insertion.md +113 -59
  99. package/docs/tr/intlayer_with_adonisjs.md +10 -0
  100. package/docs/tr/intlayer_with_express.md +10 -0
  101. package/docs/tr/intlayer_with_fastify.md +10 -0
  102. package/docs/tr/intlayer_with_hono.md +10 -0
  103. package/docs/tr/intlayer_with_nestjs.md +11 -1
  104. package/docs/uk/dictionary/html.md +4 -2
  105. package/docs/uk/dictionary/insertion.md +113 -59
  106. package/docs/uk/intlayer_with_adonisjs.md +10 -0
  107. package/docs/uk/intlayer_with_express.md +10 -0
  108. package/docs/uk/intlayer_with_fastify.md +10 -0
  109. package/docs/uk/intlayer_with_hono.md +10 -0
  110. package/docs/vi/dictionary/html.md +4 -2
  111. package/docs/vi/dictionary/insertion.md +113 -14
  112. package/docs/vi/intlayer_with_adonisjs.md +10 -0
  113. package/docs/vi/intlayer_with_express.md +10 -0
  114. package/docs/vi/intlayer_with_fastify.md +10 -0
  115. package/docs/vi/intlayer_with_hono.md +10 -0
  116. package/docs/zh/dictionary/html.md +4 -2
  117. package/docs/zh/dictionary/insertion.md +117 -63
  118. package/docs/zh/intlayer_with_adonisjs.md +10 -0
  119. package/docs/zh/intlayer_with_express.md +10 -0
  120. package/docs/zh/intlayer_with_fastify.md +10 -0
  121. package/docs/zh/intlayer_with_hono.md +10 -0
  122. package/docs/zh/intlayer_with_nestjs.md +11 -1
  123. package/package.json +6 -6
@@ -35,23 +35,125 @@ Intlayer में, सम्मिलन कंटेंट `insertion` फ़
35
35
 
36
36
  ## सम्मिलन कंटेंट सेटअप करना
37
37
 
38
- अपने Intlayer प्रोजेक्ट में सम्मिलन कंटेंट सेटअप करने के लिए, एक कंटेंट मॉड्यूल बनाएं जिसमें आपके सम्मिलन परिभाषाएँ शामिल हों। नीचे विभिन्न प्रारूपों में उदाहरण दिए गए हैं।
39
-
40
- ```typescript fileName="**/*.content.ts" contentDeclarationFormat="typescript"
41
- import { insert, type Dictionary } from "intlayer";
42
-
43
- const myInsertionContent = {
44
- key: "my_key",
45
- content: {
46
- myInsertion: insert(
47
- "नमस्ते, मेरा नाम {{name}} है और मेरी उम्र {{age}} वर्ष है!"
48
- ),
49
- myInsertion2: "नमस्ते, मेरा नाम {{name}} है और मेरी उम्र {{age}} वर्ष है!", // Since intlayer v8, insertion function is not required anymore. The content will be automatically decorated.
50
- },
51
- } satisfies Dictionary;
52
-
53
- export default myInsertionContent;
54
- ```
38
+ अपने Intlayer प्रोजेक्ट में सम्मिलन कंटेंट सेटअप करने के लिए, एक कंटेंट मॉड्यूल बनाएं जिसमें आपके सम्मिलन परिभाषाएँ शामिल हों।
39
+
40
+ <Tabs>
41
+ <Tab label="मैनुअल रैपिंग" value="manual-wrapping">
42
+ सम्मिलन कंटेंट को स्पष्ट रूप से घोषित करने के लिए `insert` फ़ंक्शन का उपयोग करें।
43
+
44
+ ```typescript fileName="**/*.content.ts" contentDeclarationFormat="typescript"
45
+ import { insert, type Dictionary } from "intlayer";
46
+
47
+ const myInsertionContent = {
48
+ key: "my_key",
49
+ content: {
50
+ myInsertion: insert(
51
+ "नमस्ते, मेरा नाम {{name}} है और मेरी उम्र {{age}} वर्ष है!"
52
+ ),
53
+ },
54
+ } satisfies Dictionary;
55
+
56
+ export default myInsertionContent;
57
+ ```
58
+
59
+ ```javascript fileName="**/*.content.mjs" contentDeclarationFormat="esm"
60
+ import { insert } from "intlayer";
61
+
62
+ /** @type {import('intlayer').Dictionary} */
63
+ const myInsertionContent = {
64
+ key: "my_key",
65
+ content: {
66
+ myInsertion: insert(
67
+ "नमस्ते, मेरा नाम {{name}} है और मेरी उम्र {{age}} वर्ष है!"
68
+ ),
69
+ },
70
+ };
71
+
72
+ export default myInsertionContent;
73
+ ```
74
+
75
+ ```javascript fileName="**/*.content.cjs" contentDeclarationFormat="commonjs"
76
+ const { insert } = require("intlayer");
77
+
78
+ /** @type {import('intlayer').Dictionary} */
79
+ const myInsertionContent = {
80
+ key: "my_key",
81
+ content: {
82
+ myInsertion: insert(
83
+ "नमस्ते, मेरा नाम {{name}} है और मेरी उम्र {{age}} वर्ष है!"
84
+ ),
85
+ },
86
+ };
87
+
88
+ module.exports = myInsertionContent;
89
+ ```
90
+
91
+ ```json5 fileName="**/*.content.json" contentDeclarationFormat="json"
92
+ {
93
+ "$schema": "https://intlayer.org/schema.json",
94
+ "key": "my_key",
95
+ "content": {
96
+ "myInsertion": {
97
+ "nodeType": "insertion",
98
+ "insertion": "नमस्ते, मेरा नाम {{name}} है और मेरी उम्र {{age}} वर्ष है!",
99
+ },
100
+ },
101
+ }
102
+ ```
103
+
104
+ </Tab>
105
+ <Tab label="स्वचालित पहचान" value="automatic-detection">
106
+ यदि स्ट्रिंग में सामान्य सम्मिलन संकेतक (जैसे `{{name}}`) हैं, तो Intlayer इसे स्वचालित रूप से बदल देगा।
107
+
108
+ ```typescript fileName="**/*.content.ts" contentDeclarationFormat="typescript"
109
+ import { type Dictionary } from "intlayer";
110
+
111
+ const myInsertionContent = {
112
+ key: "my_key",
113
+ content: {
114
+ myInsertion: "नमस्ते, मेरा नाम {{name}} है और मेरी उम्र {{age}} वर्ष है!",
115
+ },
116
+ } satisfies Dictionary;
117
+
118
+ export default myInsertionContent;
119
+ ```
120
+
121
+ ```javascript fileName="**/*.content.mjs" contentDeclarationFormat="esm"
122
+ /** @type {import('intlayer').Dictionary} */
123
+ const myInsertionContent = {
124
+ key: "my_key",
125
+ content: {
126
+ myInsertion: "नमस्ते, मेरा नाम {{name}} है और मेरी उम्र {{age}} वर्ष है!",
127
+ },
128
+ };
129
+
130
+ export default myInsertionContent;
131
+ ```
132
+
133
+ ```javascript fileName="**/*.content.cjs" contentDeclarationFormat="commonjs"
134
+ /** @type {import('intlayer').Dictionary} */
135
+ const myInsertionContent = {
136
+ key: "my_key",
137
+ content: {
138
+ myInsertion: "नमस्ते, मेरा नाम {{name}} है और मेरी उम्र {{age}} वर्ष है!",
139
+ },
140
+ };
141
+
142
+ module.exports = myInsertionContent;
143
+ ```
144
+
145
+ ```json5 fileName="**/*.content.json" contentDeclarationFormat="json"
146
+ {
147
+ "$schema": "https://intlayer.org/schema.json",
148
+ "key": "my_key",
149
+ "content": {
150
+ "myInsertion": "नमस्ते, मेरा नाम {{name}} है और मेरी उम्र {{age}} वर्ष है!",
151
+ },
152
+ }
153
+ ```
154
+
155
+ </Tab>
156
+ </Tabs>
55
157
 
56
158
  ```javascript fileName="**/*.content.mjs" contentDeclarationFormat="esm"
57
159
  import { insert } from "intlayer";
@@ -41,6 +41,16 @@ history:
41
41
 
42
42
  ## शुरू करना
43
43
 
44
+ <iframe
45
+ src="https://stackblitz.com/github/aymericzip/intlayer-adonisjs-template?embed=1&ctl=1&file=intlayer.config.ts"
46
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
47
+ title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
48
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
49
+ loading="lazy"
50
+ />
51
+
52
+ See [Application Template](https://github.com/aymericzip/intlayer-adonisjs-template) on GitHub.
53
+
44
54
  ### स्थापना
45
55
 
46
56
  `adonis-intlayer` का उपयोग शुरू करने के लिए, npm का उपयोग करके पैकेज स्थापित करें:
@@ -46,6 +46,16 @@ history:
46
46
 
47
47
  ## प्रारंभ करना
48
48
 
49
+ <iframe
50
+ src="https://stackblitz.com/github/aymericzip/intlayer-express-template?embed=1&ctl=1&file=intlayer.config.ts"
51
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
52
+ title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
53
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
54
+ loading="lazy"
55
+ />
56
+
57
+ See [Application Template](https://github.com/aymericzip/intlayer-express-template) on GitHub.
58
+
49
59
  ### स्थापना
50
60
 
51
61
  `express-intlayer` का उपयोग शुरू करने के लिए, npm का उपयोग करके पैकेज स्थापित करें:
@@ -40,6 +40,16 @@ history:
40
40
 
41
41
  ## आरंभ करना
42
42
 
43
+ <iframe
44
+ src="https://stackblitz.com/github/aymericzip/intlayer-fastify-template?embed=1&ctl=1&file=intlayer.config.ts"
45
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
46
+ title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
47
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
48
+ loading="lazy"
49
+ />
50
+
51
+ See [Application Template](https://github.com/aymericzip/intlayer-fastify-template) on GitHub.
52
+
43
53
  ### इंस्टॉलेशन
44
54
 
45
55
  `fastify-intlayer` का उपयोग शुरू करने के लिए, npm का उपयोग करके पैकेज इंस्टॉल करें:
@@ -44,6 +44,16 @@ history:
44
44
 
45
45
  ## शुरुआत करना
46
46
 
47
+ <iframe
48
+ src="https://stackblitz.com/github/aymericzip/intlayer-hono-template?embed=1&ctl=1&file=intlayer.config.ts"
49
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
50
+ title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
51
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
52
+ loading="lazy"
53
+ />
54
+
55
+ See [Application Template](https://github.com/aymericzip/intlayer-hono-template) on GitHub.
56
+
47
57
  ### स्थापना
48
58
 
49
59
  `hono-intlayer` का उपयोग शुरू करने के लिए, npm का उपयोग करके पैकेज स्थापित करें:
@@ -14,7 +14,7 @@ slugs:
14
14
  - doc
15
15
  - environment
16
16
  - nest
17
- applicationTemplate: https://github.com/AydinTheFirst/nestjs-intlayer
17
+ applicationTemplate: https://github.com/aymericzip/intlayer-nestjs-template
18
18
  author: AydinTheFirst
19
19
  history:
20
20
  - version: 7.5.9
@@ -49,6 +49,16 @@ history:
49
49
 
50
50
  ## शुरुआत कैसे करें
51
51
 
52
+ <iframe
53
+ src="https://stackblitz.com/github/aymericzip/intlayer-nestjs-template?embed=1&ctl=1&file=intlayer.config.ts"
54
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
55
+ title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
56
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
57
+ loading="lazy"
58
+ />
59
+
60
+ See [Application Template](https://github.com/aymericzip/intlayer-nestjs-template) on GitHub.
61
+
52
62
  ### नया NestJS प्रोजेक्ट बनाएं
53
63
 
54
64
  ```bash packageManager="npm"
@@ -44,8 +44,9 @@ Anda dapat menyatakan konten HTML menggunakan fungsi `html` atau cukup sebagai s
44
44
 
45
45
  const htmlDictionary = {
46
46
  key: "app",
47
+ contentAutoTransformation: true, // dapat diatur di file konfigurasi
47
48
  content: {
48
- myHtmlContent: html("<p>Hello <strong>World</strong></p>"),
49
+ myHtmlContent: html("<p>Hello <strong>World</strong></p>"),
49
50
  },
50
51
  } satisfies Dictionary;
51
52
 
@@ -59,8 +60,9 @@ Anda dapat menyatakan konten HTML menggunakan fungsi `html` atau cukup sebagai s
59
60
  ```typescript fileName="htmlDictionary.content.ts"
60
61
  export default {
61
62
  key: "app",
63
+ contentAutoTransformation: true, // dapat diatur di file konfigurasi
62
64
  content: {
63
- myHtmlContent: "<p>Hello <strong>World</strong></p>",
65
+ myHtmlContent: "<p>Hello <strong>World</strong></p>",
64
66
  },
65
67
  };
66
68
  ```
@@ -35,23 +35,125 @@ Saat diintegrasikan dengan React Intlayer atau Next Intlayer, Anda cukup menyedi
35
35
 
36
36
  ## Menyiapkan Konten Penyisipan
37
37
 
38
- Untuk menyiapkan konten penyisipan dalam proyek Intlayer Anda, buat modul konten yang mencakup definisi penyisipan Anda. Berikut adalah contoh dalam berbagai format.
39
-
40
- ```typescript fileName="**/*.content.ts" contentDeclarationFormat="typescript"
41
- import { insert, type Dictionary } from "intlayer";
42
-
43
- const myInsertionContent = {
44
- key: "my_key",
45
- content: {
46
- myInsertion: insert(
47
- "Halo, nama saya {{name}} dan saya berumur {{age}} tahun!"
48
- ),
49
- myInsertion2: "Halo, nama saya {{name}} dan saya berumur {{age}} tahun!", // Since intlayer v8, insertion function is not required anymore. The content will be automatically decorated.
50
- },
51
- } satisfies Dictionary;
52
-
53
- export default myInsertionContent;
54
- ```
38
+ Untuk menyiapkan konten penyisipan dalam proyek Intlayer Anda, buat modul konten yang mencakup definisi penyisipan Anda.
39
+
40
+ <Tabs>
41
+ <Tab label="Pembungkusan Manual" value="manual-wrapping">
42
+ Gunakan fungsi `insert` untuk mendeklarasikan konten penyisipan secara eksplisit.
43
+
44
+ ```typescript fileName="**/*.content.ts" contentDeclarationFormat="typescript"
45
+ import { insert, type Dictionary } from "intlayer";
46
+
47
+ const myInsertionContent = {
48
+ key: "my_key",
49
+ content: {
50
+ myInsertion: insert(
51
+ "Halo, nama saya {{name}} dan saya berumur {{age}} tahun!"
52
+ ),
53
+ },
54
+ } satisfies Dictionary;
55
+
56
+ export default myInsertionContent;
57
+ ```
58
+
59
+ ```javascript fileName="**/*.content.mjs" contentDeclarationFormat="esm"
60
+ import { insert } from "intlayer";
61
+
62
+ /** @type {import('intlayer').Dictionary} */
63
+ const myInsertionContent = {
64
+ key: "my_key",
65
+ content: {
66
+ myInsertion: insert(
67
+ "Halo, nama saya {{name}} dan saya berumur {{age}} tahun!"
68
+ ),
69
+ },
70
+ };
71
+
72
+ export default myInsertionContent;
73
+ ```
74
+
75
+ ```javascript fileName="**/*.content.cjs" contentDeclarationFormat="commonjs"
76
+ const { insert } = require("intlayer");
77
+
78
+ /** @type {import('intlayer').Dictionary} */
79
+ const myInsertionContent = {
80
+ key: "my_key",
81
+ content: {
82
+ myInsertion: insert(
83
+ "Halo, nama saya {{name}} dan saya berumur {{age}} tahun!"
84
+ ),
85
+ },
86
+ };
87
+
88
+ module.exports = myInsertionContent;
89
+ ```
90
+
91
+ ```json5 fileName="**/*.content.json" contentDeclarationFormat="json"
92
+ {
93
+ "$schema": "https://intlayer.org/schema.json",
94
+ "key": "my_key",
95
+ "content": {
96
+ "myInsertion": {
97
+ "nodeType": "insertion",
98
+ "insertion": "Halo, nama saya {{name}} dan saya berumur {{age}} tahun!",
99
+ },
100
+ },
101
+ }
102
+ ```
103
+
104
+ </Tab>
105
+ <Tab label="Deteksi Otomatis" value="automatic-detection">
106
+ Jika string mengandung indikator penyisipan umum (seperti `{{name}}`), Intlayer akan secara otomatis mengubahnya.
107
+
108
+ ```typescript fileName="**/*.content.ts" contentDeclarationFormat="typescript"
109
+ import { type Dictionary } from "intlayer";
110
+
111
+ const myInsertionContent = {
112
+ key: "my_key",
113
+ content: {
114
+ myInsertion: "Halo, nama saya {{name}} dan saya berumur {{age}} tahun!",
115
+ },
116
+ } satisfies Dictionary;
117
+
118
+ export default myInsertionContent;
119
+ ```
120
+
121
+ ```javascript fileName="**/*.content.mjs" contentDeclarationFormat="esm"
122
+ /** @type {import('intlayer').Dictionary} */
123
+ const myInsertionContent = {
124
+ key: "my_key",
125
+ content: {
126
+ myInsertion: "Halo, nama saya {{name}} dan saya berumur {{age}} tahun!",
127
+ },
128
+ };
129
+
130
+ export default myInsertionContent;
131
+ ```
132
+
133
+ ```javascript fileName="**/*.content.cjs" contentDeclarationFormat="commonjs"
134
+ /** @type {import('intlayer').Dictionary} */
135
+ const myInsertionContent = {
136
+ key: "my_key",
137
+ content: {
138
+ myInsertion: "Halo, nama saya {{name}} dan saya berumur {{age}} tahun!",
139
+ },
140
+ };
141
+
142
+ module.exports = myInsertionContent;
143
+ ```
144
+
145
+ ```json5 fileName="**/*.content.json" contentDeclarationFormat="json"
146
+ {
147
+ "$schema": "https://intlayer.org/schema.json",
148
+ "key": "my_key",
149
+ "content": {
150
+ "myInsertion": "Halo, nama saya {{name}} dan saya berumur {{age}} tahun!",
151
+ },
152
+ }
153
+ ```
154
+
155
+ </Tab>
156
+ </Tabs>
55
157
 
56
158
  ```javascript fileName="**/*.content.mjs" contentDeclarationFormat="esm"
57
159
  import { insert } from "intlayer";
@@ -41,6 +41,16 @@ Dengan menginternasionalkan backend, aplikasi Anda tidak hanya menghormati perbe
41
41
 
42
42
  ## Memulai
43
43
 
44
+ <iframe
45
+ src="https://stackblitz.com/github/aymericzip/intlayer-adonisjs-template?embed=1&ctl=1&file=intlayer.config.ts"
46
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
47
+ title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
48
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
49
+ loading="lazy"
50
+ />
51
+
52
+ Lihat [Application Template](https://github.com/aymericzip/intlayer-adonisjs-template) di GitHub.
53
+
44
54
  ### Instalasi
45
55
 
46
56
  Untuk mulai menggunakan `adonis-intlayer`, instal paket menggunakan npm:
@@ -44,6 +44,16 @@ Dengan menginternasionalisasi backend, aplikasi Anda tidak hanya menghormati per
44
44
 
45
45
  ## Memulai
46
46
 
47
+ <iframe
48
+ src="https://stackblitz.com/github/aymericzip/intlayer-express-template?embed=1&ctl=1&file=intlayer.config.ts"
49
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
50
+ title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
51
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
52
+ loading="lazy"
53
+ />
54
+
55
+ Lihat [Application Template](https://github.com/aymericzip/intlayer-express-template) di GitHub.
56
+
47
57
  ### Instalasi
48
58
 
49
59
  Untuk mulai menggunakan `express-intlayer`, instal paket menggunakan npm:
@@ -46,6 +46,16 @@ Dengan melakukan internasionalisasi pada backend, aplikasi Anda tidak hanya meng
46
46
 
47
47
  ## Memulai
48
48
 
49
+ <iframe
50
+ src="https://stackblitz.com/github/aymericzip/intlayer-fastify-template?embed=1&ctl=1&file=intlayer.config.ts"
51
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
52
+ title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
53
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
54
+ loading="lazy"
55
+ />
56
+
57
+ Lihat [Application Template](https://github.com/aymericzip/intlayer-fastify-template) di GitHub.
58
+
49
59
  ### Instalasi
50
60
 
51
61
  Untuk mulai menggunakan `fastify-intlayer`, pasang paket menggunakan npm:
@@ -44,6 +44,16 @@ Dengan menginternasionalisasi backend, aplikasi Anda tidak hanya menghormati per
44
44
 
45
45
  ## Memulai
46
46
 
47
+ <iframe
48
+ src="https://stackblitz.com/github/aymericzip/intlayer-hono-template?embed=1&ctl=1&file=intlayer.config.ts"
49
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
50
+ title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
51
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
52
+ loading="lazy"
53
+ />
54
+
55
+ Lihat [Application Template](https://github.com/aymericzip/intlayer-hono-template) di GitHub.
56
+
47
57
  ### Instalasi
48
58
 
49
59
  Untuk mulai menggunakan `hono-intlayer`, instal paket menggunakan npm:
@@ -46,8 +46,9 @@ Puoi dichiarare contenuti HTML usando la funzione `html` o semplicemente come st
46
46
 
47
47
  const htmlDictionary = {
48
48
  key: "app",
49
+ contentAutoTransformation: true, // può essere impostato nel file di configurazione
49
50
  content: {
50
- myHtmlContent: html("<p>Ciao <strong>Mondo</strong></p>"),
51
+ myHtmlContent: html("<p>Ciao <strong>Mondo</strong></p>"),
51
52
  },
52
53
  } satisfies Dictionary;
53
54
 
@@ -61,8 +62,9 @@ Puoi dichiarare contenuti HTML usando la funzione `html` o semplicemente come st
61
62
  ```typescript fileName="htmlDictionary.content.ts"
62
63
  export default {
63
64
  key: "app",
65
+ contentAutoTransformation: true, // può essere impostato nel file di configurazione
64
66
  content: {
65
- myHtmlContent: "<p>Ciao <strong>Mondo</strong></p>",
67
+ myHtmlContent: "<p>Ciao <strong>Mondo</strong></p>",
66
68
  },
67
69
  };
68
70
  ```