@intlayer/docs 7.5.9 → 7.5.11
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/README.md +9 -2
- package/dist/cjs/generated/docs.entry.cjs +57 -0
- package/dist/cjs/generated/docs.entry.cjs.map +1 -1
- package/dist/esm/generated/docs.entry.mjs +57 -0
- package/dist/esm/generated/docs.entry.mjs.map +1 -1
- package/dist/types/generated/docs.entry.d.ts +3 -0
- package/dist/types/generated/docs.entry.d.ts.map +1 -1
- package/docs/ar/cli/ci.md +137 -0
- package/docs/ar/cli/index.md +7 -1
- package/docs/ar/cli/list.md +39 -2
- package/docs/ar/cli/list_projects.md +131 -0
- package/docs/ar/cli/push.md +1 -1
- package/docs/ar/configuration.md +3 -3
- package/docs/ar/interest_of_intlayer.md +1 -1
- package/docs/ar/intlayer_CMS.md +25 -5
- package/docs/ar/intlayer_with_express.md +1 -0
- package/docs/ar/intlayer_with_fastify.md +516 -0
- package/docs/ar/readme.md +1 -1
- package/docs/de/cli/ci.md +137 -0
- package/docs/de/cli/index.md +7 -1
- package/docs/de/cli/list.md +39 -2
- package/docs/de/cli/list_projects.md +130 -0
- package/docs/de/cli/push.md +1 -1
- package/docs/de/configuration.md +3 -3
- package/docs/de/interest_of_intlayer.md +1 -1
- package/docs/de/intlayer_CMS.md +25 -5
- package/docs/de/intlayer_with_express.md +1 -0
- package/docs/de/intlayer_with_fastify.md +449 -0
- package/docs/de/readme.md +1 -1
- package/docs/en/cli/ci.md +137 -0
- package/docs/en/cli/index.md +14 -1
- package/docs/en/cli/list.md +39 -2
- package/docs/en/cli/list_projects.md +128 -0
- package/docs/en/cli/push.md +1 -1
- package/docs/en/configuration.md +3 -3
- package/docs/en/interest_of_intlayer.md +2 -2
- package/docs/en/intlayer_CMS.md +25 -5
- package/docs/en/intlayer_with_express.md +1 -0
- package/docs/en/intlayer_with_fastify.md +439 -0
- package/docs/en/readme.md +3 -1
- package/docs/en-GB/cli/ci.md +137 -0
- package/docs/en-GB/cli/index.md +7 -1
- package/docs/en-GB/cli/list.md +39 -2
- package/docs/en-GB/cli/list_projects.md +130 -0
- package/docs/en-GB/cli/push.md +1 -1
- package/docs/en-GB/configuration.md +3 -3
- package/docs/en-GB/interest_of_intlayer.md +1 -1
- package/docs/en-GB/intlayer_CMS.md +25 -5
- package/docs/en-GB/intlayer_with_express.md +1 -0
- package/docs/en-GB/intlayer_with_fastify.md +445 -0
- package/docs/en-GB/readme.md +3 -1
- package/docs/es/cli/ci.md +137 -0
- package/docs/es/cli/index.md +7 -1
- package/docs/es/cli/list.md +39 -2
- package/docs/es/cli/list_projects.md +130 -0
- package/docs/es/cli/push.md +1 -1
- package/docs/es/configuration.md +3 -3
- package/docs/es/interest_of_intlayer.md +1 -1
- package/docs/es/intlayer_CMS.md +25 -5
- package/docs/es/intlayer_with_express.md +1 -0
- package/docs/es/intlayer_with_fastify.md +480 -0
- package/docs/es/readme.md +1 -1
- package/docs/fr/cli/ci.md +137 -0
- package/docs/fr/cli/index.md +7 -1
- package/docs/fr/cli/list.md +39 -2
- package/docs/fr/cli/list_projects.md +131 -0
- package/docs/fr/cli/push.md +1 -1
- package/docs/fr/configuration.md +3 -3
- package/docs/fr/interest_of_intlayer.md +1 -1
- package/docs/fr/intlayer_CMS.md +25 -5
- package/docs/fr/intlayer_with_express.md +1 -0
- package/docs/fr/intlayer_with_fastify.md +439 -0
- package/docs/fr/readme.md +1 -1
- package/docs/hi/cli/ci.md +137 -0
- package/docs/hi/cli/index.md +7 -1
- package/docs/hi/cli/list.md +38 -1
- package/docs/hi/cli/list_projects.md +130 -0
- package/docs/hi/cli/push.md +1 -1
- package/docs/hi/configuration.md +3 -3
- package/docs/hi/interest_of_intlayer.md +1 -1
- package/docs/hi/intlayer_CMS.md +25 -5
- package/docs/hi/intlayer_with_express.md +1 -0
- package/docs/hi/intlayer_with_fastify.md +540 -0
- package/docs/hi/readme.md +1 -1
- package/docs/id/cli/ci.md +137 -0
- package/docs/id/cli/index.md +7 -1
- package/docs/id/cli/list.md +38 -1
- package/docs/id/cli/list_projects.md +128 -0
- package/docs/id/cli/push.md +1 -1
- package/docs/id/configuration.md +3 -3
- package/docs/id/interest_of_intlayer.md +1 -1
- package/docs/id/intlayer_CMS.md +25 -5
- package/docs/id/intlayer_with_express.md +1 -0
- package/docs/id/intlayer_with_fastify.md +470 -0
- package/docs/id/readme.md +1 -1
- package/docs/it/cli/ci.md +137 -0
- package/docs/it/cli/index.md +7 -1
- package/docs/it/cli/list.md +39 -2
- package/docs/it/cli/list_projects.md +130 -0
- package/docs/it/cli/push.md +1 -1
- package/docs/it/configuration.md +3 -3
- package/docs/it/interest_of_intlayer.md +1 -1
- package/docs/it/intlayer_CMS.md +25 -5
- package/docs/it/intlayer_with_express.md +1 -0
- package/docs/it/intlayer_with_fastify.md +445 -0
- package/docs/it/readme.md +1 -1
- package/docs/ja/cli/ci.md +137 -0
- package/docs/ja/cli/index.md +7 -1
- package/docs/ja/cli/list.md +38 -1
- package/docs/ja/cli/list_projects.md +136 -0
- package/docs/ja/cli/push.md +1 -1
- package/docs/ja/configuration.md +3 -3
- package/docs/ja/interest_of_intlayer.md +1 -1
- package/docs/ja/intlayer_CMS.md +25 -5
- package/docs/ja/intlayer_with_express.md +1 -0
- package/docs/ja/intlayer_with_fastify.md +516 -0
- package/docs/ja/readme.md +1 -1
- package/docs/ko/cli/ci.md +137 -0
- package/docs/ko/cli/index.md +7 -1
- package/docs/ko/cli/list.md +38 -1
- package/docs/ko/cli/list_projects.md +128 -0
- package/docs/ko/cli/push.md +1 -1
- package/docs/ko/configuration.md +3 -3
- package/docs/ko/interest_of_intlayer.md +1 -1
- package/docs/ko/intlayer_CMS.md +25 -5
- package/docs/ko/intlayer_with_express.md +1 -0
- package/docs/ko/intlayer_with_fastify.md +463 -0
- package/docs/ko/readme.md +1 -1
- package/docs/pl/cli/ci.md +137 -0
- package/docs/pl/cli/index.md +7 -1
- package/docs/pl/cli/list.md +39 -2
- package/docs/pl/cli/list_projects.md +130 -0
- package/docs/pl/cli/push.md +1 -1
- package/docs/pl/configuration.md +3 -3
- package/docs/pl/interest_of_intlayer.md +1 -1
- package/docs/pl/intlayer_CMS.md +25 -5
- package/docs/pl/intlayer_with_express.md +1 -0
- package/docs/pl/intlayer_with_fastify.md +457 -0
- package/docs/pl/readme.md +1 -1
- package/docs/pt/cli/ci.md +137 -0
- package/docs/pt/cli/index.md +7 -1
- package/docs/pt/cli/list.md +39 -2
- package/docs/pt/cli/list_projects.md +134 -0
- package/docs/pt/cli/push.md +1 -1
- package/docs/pt/configuration.md +3 -3
- package/docs/pt/interest_of_intlayer.md +1 -1
- package/docs/pt/intlayer_CMS.md +25 -5
- package/docs/pt/intlayer_with_express.md +1 -0
- package/docs/pt/intlayer_with_fastify.md +502 -0
- package/docs/pt/readme.md +1 -1
- package/docs/ru/cli/ci.md +137 -0
- package/docs/ru/cli/index.md +7 -1
- package/docs/ru/cli/list.md +39 -2
- package/docs/ru/cli/list_projects.md +130 -0
- package/docs/ru/cli/push.md +1 -1
- package/docs/ru/configuration.md +3 -3
- package/docs/ru/interest_of_intlayer.md +1 -1
- package/docs/ru/intlayer_CMS.md +25 -5
- package/docs/ru/intlayer_with_express.md +1 -0
- package/docs/ru/intlayer_with_fastify.md +468 -0
- package/docs/ru/readme.md +1 -1
- package/docs/tr/cli/ci.md +137 -0
- package/docs/tr/cli/index.md +7 -1
- package/docs/tr/cli/list.md +39 -2
- package/docs/tr/cli/list_projects.md +134 -0
- package/docs/tr/cli/push.md +1 -1
- package/docs/tr/configuration.md +3 -3
- package/docs/tr/interest_of_intlayer.md +1 -1
- package/docs/tr/intlayer_CMS.md +25 -5
- package/docs/tr/intlayer_with_express.md +1 -0
- package/docs/tr/intlayer_with_fastify.md +471 -0
- package/docs/tr/readme.md +1 -1
- package/docs/vi/cli/ci.md +137 -0
- package/docs/vi/cli/index.md +7 -1
- package/docs/vi/cli/list.md +38 -1
- package/docs/vi/cli/list_projects.md +130 -0
- package/docs/vi/cli/push.md +1 -1
- package/docs/vi/configuration.md +3 -3
- package/docs/vi/interest_of_intlayer.md +1 -1
- package/docs/vi/intlayer_CMS.md +25 -5
- package/docs/vi/intlayer_with_express.md +1 -0
- package/docs/vi/intlayer_with_fastify.md +490 -0
- package/docs/vi/readme.md +1 -1
- package/docs/zh/cli/ci.md +137 -0
- package/docs/zh/cli/index.md +7 -1
- package/docs/zh/cli/list.md +38 -1
- package/docs/zh/cli/list_projects.md +130 -0
- package/docs/zh/cli/push.md +1 -1
- package/docs/zh/configuration.md +3 -3
- package/docs/zh/interest_of_intlayer.md +1 -1
- package/docs/zh/intlayer_CMS.md +25 -5
- package/docs/zh/intlayer_with_express.md +1 -0
- package/docs/zh/intlayer_with_fastify.md +451 -0
- package/docs/zh/readme.md +1 -1
- package/package.json +6 -6
- package/src/generated/docs.entry.ts +57 -0
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2025-12-30
|
|
3
|
+
updatedAt: 2025-12-30
|
|
4
|
+
title: Comment traduire votre backend Fastify – guide i18n 2026
|
|
5
|
+
description: Découvrez comment rendre votre backend Fastify multilingue. Suivez la documentation pour internationaliser (i18n) et traduire.
|
|
6
|
+
keywords:
|
|
7
|
+
- Internationalisation
|
|
8
|
+
- Documentation
|
|
9
|
+
- Intlayer
|
|
10
|
+
- Fastify
|
|
11
|
+
- JavaScript
|
|
12
|
+
- Backend
|
|
13
|
+
slugs:
|
|
14
|
+
- doc
|
|
15
|
+
- environment
|
|
16
|
+
- fastify
|
|
17
|
+
applicationTemplate: https://github.com/aymericzip/intlayer-fastify-template
|
|
18
|
+
history:
|
|
19
|
+
- version: 7.6.0
|
|
20
|
+
date: 2025-12-31
|
|
21
|
+
changes: Ajout de la commande init
|
|
22
|
+
- version: 7.6.0
|
|
23
|
+
date: 2025-12-31
|
|
24
|
+
changes: Historique initial
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Traduire votre backend Fastify avec Intlayer | Internationalisation (i18n)
|
|
28
|
+
|
|
29
|
+
`fastify-intlayer` est un puissant plugin d'internationalisation (i18n) pour les applications Fastify, conçu pour rendre vos services backend accessibles à l'international en fournissant des réponses localisées selon les préférences du client.
|
|
30
|
+
|
|
31
|
+
### Cas d'utilisation pratiques
|
|
32
|
+
|
|
33
|
+
- **Afficher les erreurs backend dans la langue de l'utilisateur** : Lorsqu'une erreur survient, afficher des messages dans la langue maternelle de l'utilisateur améliore la compréhension et réduit la frustration. Cela est particulièrement utile pour les messages d'erreur dynamiques qui peuvent être affichés dans des composants frontend tels que des toasts ou des modals.
|
|
34
|
+
- **Récupération de contenu multilingue** : Pour les applications récupérant du contenu depuis une base de données, l'internationalisation garantit que vous pouvez servir ce contenu en plusieurs langues. Ceci est crucial pour des plateformes comme les sites e-commerce ou les systèmes de gestion de contenu qui doivent afficher des descriptions de produits, des articles et autres contenus dans la langue préférée de l'utilisateur.
|
|
35
|
+
- **Envoi d'e-mails multilingues** : Qu'il s'agisse d'e-mails transactionnels, de campagnes marketing ou de notifications, l'envoi d'e-mails dans la langue du destinataire peut augmenter significativement l'engagement et l'efficacité.
|
|
36
|
+
- **Notifications push multilingues** : Pour les applications mobiles, l'envoi de push notifications dans la langue préférée de l'utilisateur peut améliorer l'interaction et la rétention. Cette touche personnelle peut rendre les notifications plus pertinentes et plus engageantes.
|
|
37
|
+
- **Autres communications** : Toute forme de communication émanant du backend, comme les SMS, les alertes système ou les mises à jour de l'interface utilisateur, bénéficie d'être dans la langue de l'utilisateur, garantissant la clarté et améliorant l'expérience utilisateur globale.
|
|
38
|
+
|
|
39
|
+
En internationalisant le backend, votre application non seulement respecte les différences culturelles mais s'aligne également mieux sur les besoins du marché mondial, ce qui en fait une étape clé pour étendre vos services à l'échelle mondiale.
|
|
40
|
+
|
|
41
|
+
## Prise en main
|
|
42
|
+
|
|
43
|
+
### Installation
|
|
44
|
+
|
|
45
|
+
Pour commencer à utiliser `fastify-intlayer`, installez le package en utilisant npm :
|
|
46
|
+
|
|
47
|
+
```bash packageManager="npm"
|
|
48
|
+
npm install intlayer fastify-intlayer
|
|
49
|
+
npx intlayer init
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
```bash packageManager="pnpm"
|
|
54
|
+
pnpm add intlayer fastify-intlayer
|
|
55
|
+
pnpm intlayer init
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```bash packageManager="yarn"
|
|
60
|
+
yarn add intlayer fastify-intlayer
|
|
61
|
+
yarn intlayer init
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
```bash packageManager="bun"
|
|
66
|
+
bun add intlayer fastify-intlayer
|
|
67
|
+
bunx intlayer init
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Configuration
|
|
72
|
+
|
|
73
|
+
Configurez les paramètres d'internationalisation en créant un fichier `intlayer.config.ts` à la racine de votre projet :
|
|
74
|
+
|
|
75
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
76
|
+
import { Locales, type IntlayerConfig } from "intlayer";
|
|
77
|
+
|
|
78
|
+
const config: IntlayerConfig = {
|
|
79
|
+
internationalization: {
|
|
80
|
+
locales: [
|
|
81
|
+
Locales.ENGLISH,
|
|
82
|
+
Locales.FRENCH,
|
|
83
|
+
Locales.SPANISH_MEXICO,
|
|
84
|
+
Locales.SPANISH_SPAIN,
|
|
85
|
+
],
|
|
86
|
+
defaultLocale: Locales.ENGLISH,
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export default config;
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
94
|
+
import { Locales } from "intlayer";
|
|
95
|
+
|
|
96
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
97
|
+
const config = {
|
|
98
|
+
internationalization: {
|
|
99
|
+
locales: [
|
|
100
|
+
Locales.ENGLISH,
|
|
101
|
+
Locales.FRENCH,
|
|
102
|
+
Locales.SPANISH_MEXICO,
|
|
103
|
+
Locales.SPANISH_SPAIN,
|
|
104
|
+
],
|
|
105
|
+
defaultLocale: Locales.ENGLISH,
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export default config;
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
113
|
+
const { Locales } = require("intlayer");
|
|
114
|
+
|
|
115
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
116
|
+
const config = {
|
|
117
|
+
internationalization: {
|
|
118
|
+
locales: [
|
|
119
|
+
Locales.ENGLISH,
|
|
120
|
+
Locales.FRENCH,
|
|
121
|
+
Locales.SPANISH_MEXICO,
|
|
122
|
+
Locales.SPANISH_SPAIN,
|
|
123
|
+
],
|
|
124
|
+
defaultLocale: Locales.ENGLISH,
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
module.exports = config;
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Déclarez votre contenu
|
|
132
|
+
|
|
133
|
+
Créez et gérez vos déclarations de contenu pour stocker les traductions :
|
|
134
|
+
|
|
135
|
+
```typescript fileName="src/index.content.ts" contentDeclarationFormat="typescript"
|
|
136
|
+
import { t, type Dictionary } from "intlayer";
|
|
137
|
+
|
|
138
|
+
const indexContent = {
|
|
139
|
+
key: "index",
|
|
140
|
+
content: {
|
|
141
|
+
exampleOfContent: t({
|
|
142
|
+
fr: "Exemple de contenu renvoyé en français",
|
|
143
|
+
en: "Example of returned content in English",
|
|
144
|
+
"es-ES": "Ejemplo de contenido devuelto en español (España)",
|
|
145
|
+
"es-MX": "Ejemplo de contenido devuelto en español (México)",
|
|
146
|
+
}),
|
|
147
|
+
},
|
|
148
|
+
} satisfies Dictionary;
|
|
149
|
+
|
|
150
|
+
export default indexContent;
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
```javascript fileName="src/index.content.mjs" contentDeclarationFormat="esm"
|
|
154
|
+
import { t } from "intlayer";
|
|
155
|
+
|
|
156
|
+
/** @type {import('intlayer').Dictionary} */
|
|
157
|
+
const indexContent = {
|
|
158
|
+
key: "index",
|
|
159
|
+
content: {
|
|
160
|
+
exampleOfContent: t({
|
|
161
|
+
fr: "Exemple de contenu renvoyé en français",
|
|
162
|
+
en: "Example of returned content in English",
|
|
163
|
+
"es-ES": "Ejemplo de contenido devuelto en español (España)",
|
|
164
|
+
"es-MX": "Ejemplo de contenido devuelto en español (México)",
|
|
165
|
+
}),
|
|
166
|
+
},
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
export default indexContent;
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
```javascript fileName="src/index.content.cjs" contentDeclarationFormat="commonjs"
|
|
173
|
+
const { t } = require("intlayer");
|
|
174
|
+
|
|
175
|
+
/** @type {import('intlayer').Dictionary} */
|
|
176
|
+
const indexContent = {
|
|
177
|
+
key: "index",
|
|
178
|
+
content: {
|
|
179
|
+
exampleOfContent: t({
|
|
180
|
+
fr: "Exemple de contenu renvoyé en français",
|
|
181
|
+
en: "Example of returned content in English",
|
|
182
|
+
"es-ES": "Ejemplo de contenido devuelto en español (España)",
|
|
183
|
+
"es-MX": "Ejemplo de contenido devuelto en español (México)",
|
|
184
|
+
}),
|
|
185
|
+
},
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
module.exports = indexContent;
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
```json fileName="src/index.content.json" contentDeclarationFormat="json"
|
|
192
|
+
{
|
|
193
|
+
"$schema": "https://intlayer.org/schema.json",
|
|
194
|
+
"key": "index",
|
|
195
|
+
"content": {
|
|
196
|
+
"exampleOfContent": {
|
|
197
|
+
"nodeType": "translation",
|
|
198
|
+
"translation": {
|
|
199
|
+
"en": "Example of returned content in English",
|
|
200
|
+
"fr": "Exemple de contenu renvoyé en français",
|
|
201
|
+
"es-ES": "Ejemplo de contenido devuelto en español (España)",
|
|
202
|
+
"es-MX": "Ejemplo de contenido devuelto en español (México)"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
> Vos déclarations de contenu peuvent être définies n'importe où dans votre application dès qu'elles sont incluses dans le répertoire `contentDir` (par défaut, `./src`). Et doivent correspondre à l'extension de fichier des déclarations de contenu (par défaut, `.content.{json,ts,tsx,js,jsx,mjs,mjx,cjs,cjx}`).
|
|
210
|
+
|
|
211
|
+
> Pour plus de détails, référez-vous à la [documentation sur les déclarations de contenu](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/dictionary/content_file.md).
|
|
212
|
+
|
|
213
|
+
### Configuration de l'application Fastify
|
|
214
|
+
|
|
215
|
+
Configurez votre application Fastify pour utiliser `fastify-intlayer` :
|
|
216
|
+
|
|
217
|
+
```typescript fileName="src/index.ts" codeFormat="typescript"
|
|
218
|
+
import Fastify from "fastify";
|
|
219
|
+
import { intlayer, t, getDictionary, getIntlayer } from "fastify-intlayer";
|
|
220
|
+
import dictionaryExample from "./index.content";
|
|
221
|
+
|
|
222
|
+
const fastify = Fastify({ logger: true });
|
|
223
|
+
|
|
224
|
+
// Charger le plugin d'internationalisation
|
|
225
|
+
await fastify.register(intlayer);
|
|
226
|
+
|
|
227
|
+
// Routes
|
|
228
|
+
fastify.get("/t_example", async (_req, reply) => {
|
|
229
|
+
return t({
|
|
230
|
+
fr: "Exemple de contenu renvoyé en français",
|
|
231
|
+
en: "Example of returned content in English",
|
|
232
|
+
"es-ES": "Ejemplo de contenido devuelto en español (España)",
|
|
233
|
+
"es-MX": "Ejemplo de contenido devuelto en español (México)",
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
fastify.get("/getIntlayer_example", async (_req, reply) => {
|
|
238
|
+
return getIntlayer("index").exampleOfContent;
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
fastify.get("/getDictionary_example", async (_req, reply) => {
|
|
242
|
+
return getDictionary(dictionaryExample).exampleOfContent;
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
// Démarrer le serveur
|
|
246
|
+
const start = async () => {
|
|
247
|
+
try {
|
|
248
|
+
await fastify.listen({ port: 3000 });
|
|
249
|
+
} catch (err) {
|
|
250
|
+
fastify.log.error(err);
|
|
251
|
+
process.exit(1);
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
start();
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
```javascript fileName="src/index.mjs" codeFormat="esm"
|
|
259
|
+
import Fastify from "fastify";
|
|
260
|
+
import { intlayer, t, getDictionary, getIntlayer } from "fastify-intlayer";
|
|
261
|
+
import dictionaryExample from "./index.content";
|
|
262
|
+
|
|
263
|
+
const fastify = Fastify({ logger: true });
|
|
264
|
+
|
|
265
|
+
// Charger le plugin d'internationalisation
|
|
266
|
+
await fastify.register(intlayer);
|
|
267
|
+
|
|
268
|
+
// Définition des routes
|
|
269
|
+
fastify.get("/t_example", async (_req, reply) => {
|
|
270
|
+
return t({
|
|
271
|
+
fr: "Exemple de contenu renvoyé en français",
|
|
272
|
+
en: "Example of returned content in English",
|
|
273
|
+
"es-ES": "Ejemplo de contenido devuelto en español (España)",
|
|
274
|
+
"es-MX": "Ejemplo de contenido devuelto en español (México)",
|
|
275
|
+
});
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
fastify.get("/getIntlayer_example", async (_req, reply) => {
|
|
279
|
+
return getIntlayer("index").exampleOfContent;
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
fastify.get("/getDictionary_example", async (_req, reply) => {
|
|
283
|
+
return getDictionary(dictionaryExample).exampleOfContent;
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
// Démarrer le serveur
|
|
287
|
+
const start = async () => {
|
|
288
|
+
try {
|
|
289
|
+
await fastify.listen({ port: 3000 });
|
|
290
|
+
} catch (err) {
|
|
291
|
+
fastify.log.error(err);
|
|
292
|
+
process.exit(1);
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
start();
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
```javascript fileName="src/index.cjs" codeFormat="commonjs"
|
|
300
|
+
const Fastify = require("fastify");
|
|
301
|
+
const { intlayer, t, getDictionary, getIntlayer } = require("fastify-intlayer");
|
|
302
|
+
const dictionaryExample = require("./index.content");
|
|
303
|
+
|
|
304
|
+
const fastify = Fastify({ logger: true });
|
|
305
|
+
|
|
306
|
+
// Wrapper de démarrage du serveur pour async/await
|
|
307
|
+
const start = async () => {
|
|
308
|
+
try {
|
|
309
|
+
// Charger le plugin d'internationalisation
|
|
310
|
+
await fastify.register(intlayer);
|
|
311
|
+
|
|
312
|
+
// Routes
|
|
313
|
+
fastify.get("/t_example", async (_req, reply) => {
|
|
314
|
+
return t({
|
|
315
|
+
fr: "Exemple de contenu renvoyé en français",
|
|
316
|
+
en: "Example of returned content in English",
|
|
317
|
+
"es-ES": "Ejemplo de contenido devuelto en español (España)",
|
|
318
|
+
"es-MX": "Ejemplo de contenido devuelto en español (México)",
|
|
319
|
+
});
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
fastify.get("/getIntlayer_example", async (_req, reply) => {
|
|
323
|
+
return getIntlayer("index").exampleOfContent;
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
fastify.get("/getDictionary_example", async (_req, reply) => {
|
|
327
|
+
return getDictionary(dictionaryExample).exampleOfContent;
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
await fastify.listen({ port: 3000 });
|
|
331
|
+
} catch (err) {
|
|
332
|
+
fastify.log.error(err);
|
|
333
|
+
process.exit(1);
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
start();
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### Compatibilité
|
|
341
|
+
|
|
342
|
+
`fastify-intlayer` est entièrement compatible avec :
|
|
343
|
+
|
|
344
|
+
- [`react-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/packages/react-intlayer/index.md) pour les applications React
|
|
345
|
+
- [`next-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/packages/next-intlayer/index.md) pour les applications Next.js
|
|
346
|
+
- [`vite-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/packages/vite-intlayer/index.md) pour les applications Vite
|
|
347
|
+
|
|
348
|
+
Il fonctionne également de manière transparente avec n'importe quelle solution d'internationalisation dans divers environnements, y compris les navigateurs et les requêtes d'API. Vous pouvez personnaliser le middleware pour détecter la locale via les en-têtes ou les cookies :
|
|
349
|
+
|
|
350
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
351
|
+
import { Locales, type IntlayerConfig } from "intlayer";
|
|
352
|
+
|
|
353
|
+
const config: IntlayerConfig = {
|
|
354
|
+
// ... Autres options de configuration
|
|
355
|
+
middleware: {
|
|
356
|
+
headerName: "my-locale-header",
|
|
357
|
+
cookieName: "my-locale-cookie",
|
|
358
|
+
},
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
export default config;
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
365
|
+
import { Locales } from "intlayer";
|
|
366
|
+
|
|
367
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
368
|
+
const config = {
|
|
369
|
+
// ... Autres options de configuration
|
|
370
|
+
middleware: {
|
|
371
|
+
headerName: "my-locale-header",
|
|
372
|
+
cookieName: "my-locale-cookie",
|
|
373
|
+
},
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
export default config;
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
380
|
+
const { Locales } = require("intlayer");
|
|
381
|
+
|
|
382
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
383
|
+
const config = {
|
|
384
|
+
// ... Autres options de configuration
|
|
385
|
+
middleware: {
|
|
386
|
+
headerName: "my-locale-header",
|
|
387
|
+
cookieName: "my-locale-cookie",
|
|
388
|
+
},
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
module.exports = config;
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
Par défaut, `fastify-intlayer` interprétera l'en-tête `Accept-Language` pour déterminer la langue préférée du client.
|
|
395
|
+
|
|
396
|
+
> Pour plus d'informations sur la configuration et les sujets avancés, consultez notre [documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/fr/configuration.md).
|
|
397
|
+
|
|
398
|
+
### Configurer TypeScript
|
|
399
|
+
|
|
400
|
+
`fastify-intlayer` exploite les capacités robustes de TypeScript pour améliorer le processus d'internationalisation. Le typage statique de TypeScript garantit que chaque clé de traduction est prise en compte, réduisant le risque de traductions manquantes et améliorant la maintenabilité.
|
|
401
|
+
|
|
402
|
+
Assurez-vous que les types autogénérés (par défaut dans ./types/intlayer.d.ts) sont inclus dans votre fichier tsconfig.json.
|
|
403
|
+
|
|
404
|
+
```json5 fileName="tsconfig.json"
|
|
405
|
+
{
|
|
406
|
+
// ... Vos configurations TypeScript existantes
|
|
407
|
+
"include": [
|
|
408
|
+
// ... Vos configurations TypeScript existantes
|
|
409
|
+
".intlayer/**/*.ts", // Inclure les types générés automatiquement
|
|
410
|
+
],
|
|
411
|
+
}
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
### Extension VS Code
|
|
415
|
+
|
|
416
|
+
Pour améliorer votre expérience de développement avec Intlayer, vous pouvez installer l'extension officielle **Intlayer VS Code**.
|
|
417
|
+
|
|
418
|
+
[Installer depuis le Marketplace VS Code](https://marketplace.visualstudio.com/items?itemName=intlayer.intlayer-vs-code-extension)
|
|
419
|
+
|
|
420
|
+
Cette extension fournit :
|
|
421
|
+
|
|
422
|
+
- **Autocomplétion** pour les clés de traduction.
|
|
423
|
+
- **Détection d'erreurs en temps réel** pour les traductions manquantes.
|
|
424
|
+
- **Aperçus en ligne** du contenu traduit.
|
|
425
|
+
- **Actions rapides** pour créer et mettre à jour facilement les traductions.
|
|
426
|
+
|
|
427
|
+
Pour plus de détails sur l'utilisation de l'extension, référez-vous à la [documentation de l'extension Intlayer pour VS Code](https://intlayer.org/doc/vs-code-extension).
|
|
428
|
+
|
|
429
|
+
### Configuration Git
|
|
430
|
+
|
|
431
|
+
Il est recommandé d'ignorer les fichiers générés par Intlayer. Cela vous permet d'éviter de les inclure dans votre dépôt Git.
|
|
432
|
+
|
|
433
|
+
Pour ce faire, vous pouvez ajouter les instructions suivantes à votre fichier `.gitignore` :
|
|
434
|
+
|
|
435
|
+
```plaintext fileName=".gitignore"
|
|
436
|
+
# Ignorer les fichiers générés par Intlayer
|
|
437
|
+
.intlayer
|
|
438
|
+
|
|
439
|
+
```
|
package/docs/fr/readme.md
CHANGED
|
@@ -50,7 +50,7 @@ Avec des **fichiers de contenu par locale**, une **autocomplétion TypeScript**,
|
|
|
50
50
|
| Fonctionnalité | Description |
|
|
51
51
|
| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
52
52
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/frameworks.png?raw=true" alt="Fonctionnalité" width="700"> | **Support Multi-Frameworks**<br><br>Intlayer est compatible avec tous les principaux frameworks et bibliothèques, y compris Next.js, React, Vite, Vue.js, Nuxt, Preact, Express, et bien d'autres. |
|
|
53
|
-
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/javascript_content_management.
|
|
53
|
+
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/javascript_content_management.jpg?raw=true" alt="Fonctionnalité" width="700"> | **Gestion de contenu propulsée par JavaScript**<br><br>Exploitez la flexibilité de JavaScript pour définir et gérer efficacement votre contenu. <br><br> - [Déclaration de contenu](https://intlayer.org/doc/concept/content) |
|
|
54
54
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/per_locale_content_declaration_file.png?raw=true" alt="Fonctionnalité" width="700"> | **Fichier de déclaration de contenu par locale**<br><br>Accélérez votre développement en déclarant votre contenu une seule fois, avant la génération automatique.<br><br> - [Fichier de déclaration de contenu par locale](https://intlayer.org/doc/concept/per-locale-file) |
|
|
55
55
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/autocompletion.png?raw=true" alt="Fonctionnalité" width="700"> | **Environnement avec typage sécurisé**<br><br>Exploitez TypeScript pour garantir que vos définitions de contenu et votre code sont sans erreur, tout en bénéficiant de l'autocomplétion dans votre IDE.<br><br> - [Configuration TypeScript](https://intlayer.org/doc/environment/vite-and-react#configure-typescript) |
|
|
56
56
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/config_file.png?raw=true" alt="Fonctionnalité" width="700"> | **Configuration simplifiée**<br><br>Démarrez rapidement avec une configuration minimale. Ajustez facilement les paramètres pour l'internationalisation, le routage, l'IA, la construction et la gestion du contenu.<br><br> - [Découvrez l'intégration Next.js](https://intlayer.org/doc/environment/nextjs) |
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2026-01-06
|
|
3
|
+
updatedAt: 2026-01-06
|
|
4
|
+
title: CI कमांड
|
|
5
|
+
description: CI/CD पाइपलाइन और मोनोरेपो में स्वचालित रूप से इंजेक्ट किए गए क्रेडेंशियल के साथ Intlayer कमांड चलाने के लिए Intlayer CI कमांड का उपयोग कैसे करें, यह जानें।
|
|
6
|
+
keywords:
|
|
7
|
+
- CI
|
|
8
|
+
- CI/CD
|
|
9
|
+
- स्वचालन
|
|
10
|
+
- मोनोरेपो
|
|
11
|
+
- क्रेडेंशियल
|
|
12
|
+
- CLI
|
|
13
|
+
- Intlayer
|
|
14
|
+
slugs:
|
|
15
|
+
- doc
|
|
16
|
+
- concept
|
|
17
|
+
- cli
|
|
18
|
+
- ci
|
|
19
|
+
history:
|
|
20
|
+
- version: 7.5.11
|
|
21
|
+
date: 2026-01-06
|
|
22
|
+
changes: CI कमांड जोड़ें
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# CI कमांड
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npx intlayer ci <command...>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
CI कमांड स्वचालन और CI/CD पाइपलाइन के लिए डिज़ाइन किया गया है। यह स्वचालित रूप से `INTLAYER_PROJECT_CREDENTIALS` environment variable से क्रेडेंशियल इंजेक्ट करता है और मोनोरेपो में कई प्रोजेक्ट पर Intlayer कमांड चला सकता है।
|
|
32
|
+
|
|
33
|
+
## यह कैसे काम करता है
|
|
34
|
+
|
|
35
|
+
CI कमांड दो मोड में काम करता है:
|
|
36
|
+
|
|
37
|
+
1. **एकल प्रोजेक्ट मोड**: यदि वर्तमान working directory `INTLAYER_PROJECT_CREDENTIALS` में प्रोजेक्ट पथों में से एक से मेल खाता है, तो यह केवल उस विशिष्ट प्रोजेक्ट के लिए कमांड चलाता है।
|
|
38
|
+
|
|
39
|
+
2. **पुनरावृत्ति मोड**: यदि कोई विशिष्ट प्रोजेक्ट context का पता नहीं चलता है, तो यह सभी configured प्रोजेक्ट पर iterate करता है और प्रत्येक के लिए कमांड चलाता है।
|
|
40
|
+
|
|
41
|
+
## Environment Variable
|
|
42
|
+
|
|
43
|
+
कमांड के लिए `INTLAYER_PROJECT_CREDENTIALS` environment variable सेट होना आवश्यक है। इस variable में एक JSON object होना चाहिए जो प्रोजेक्ट पथों को उनके क्रेडेंशियल से map करता है:
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{
|
|
47
|
+
"packages/app": {
|
|
48
|
+
"clientId": "your-client-id-1",
|
|
49
|
+
"clientSecret": "your-client-secret-1"
|
|
50
|
+
},
|
|
51
|
+
"packages/admin": {
|
|
52
|
+
"clientId": "your-client-id-2",
|
|
53
|
+
"clientSecret": "your-client-secret-2"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Package Manager Detection
|
|
59
|
+
|
|
60
|
+
CI कमांड स्वचालित रूप से पता लगाता है कि कौन सा package manager उपयोग किया जा रहा है (npm, yarn, pnpm, या bun) `npm_config_user_agent` environment variable के आधार पर और Intlayer को execute करने के लिए उपयुक्त कमांड का उपयोग करता है।
|
|
61
|
+
|
|
62
|
+
## Arguments
|
|
63
|
+
|
|
64
|
+
- **`<command...>`**: execute करने के लिए Intlayer कमांड (उदाहरण के लिए, `fill`, `push`, `build`)। आप कोई भी Intlayer कमांड और उसके arguments पास कर सकते हैं।
|
|
65
|
+
|
|
66
|
+
> उदाहरण: `npx intlayer ci fill --verbose`
|
|
67
|
+
>
|
|
68
|
+
> उदाहरण: `npx intlayer ci push`
|
|
69
|
+
>
|
|
70
|
+
> उदाहरण: `npx intlayer ci build`
|
|
71
|
+
|
|
72
|
+
## उदाहरण
|
|
73
|
+
|
|
74
|
+
### एकल प्रोजेक्ट मोड में कमांड चलाएं
|
|
75
|
+
|
|
76
|
+
यदि आप एक प्रोजेक्ट directory में हैं जो `INTLAYER_PROJECT_CREDENTIALS` में paths में से एक से मेल खाता है:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
cd packages/app
|
|
80
|
+
npx intlayer ci fill
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
यह `packages/app` प्रोजेक्ट के लिए स्वचालित रूप से injected क्रेडेंशियल के साथ `fill` कमांड चलाएगा।
|
|
84
|
+
|
|
85
|
+
### सभी प्रोजेक्ट पर कमांड चलाएं
|
|
86
|
+
|
|
87
|
+
यदि आप एक directory में हैं जो किसी भी प्रोजेक्ट path से मेल नहीं खाता है, तो कमांड सभी configured प्रोजेक्ट पर iterate करेगा:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
cd /path/to/monorepo
|
|
91
|
+
npx intlayer ci push
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
यह `INTLAYER_PROJECT_CREDENTIALS` में configured प्रत्येक प्रोजेक्ट के लिए `push` कमांड चलाएगा।
|
|
95
|
+
|
|
96
|
+
### अतिरिक्त flags पास करें
|
|
97
|
+
|
|
98
|
+
आप underlying Intlayer कमांड में कोई भी flags पास कर सकते हैं:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
npx intlayer ci fill --verbose --mode complete
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### CI/CD pipelines में उपयोग करें
|
|
105
|
+
|
|
106
|
+
अपने CI/CD configuration में (उदाहरण के लिए, GitHub Actions, GitLab CI), `INTLAYER_PROJECT_CREDENTIALS` को secret के रूप में सेट करें:
|
|
107
|
+
|
|
108
|
+
```yaml
|
|
109
|
+
# GitHub Actions उदाहरण
|
|
110
|
+
env:
|
|
111
|
+
INTLAYER_PROJECT_CREDENTIALS: ${{ secrets.INTLAYER_PROJECT_CREDENTIALS }}
|
|
112
|
+
|
|
113
|
+
steps:
|
|
114
|
+
- name: शब्दकोश भरें
|
|
115
|
+
run: npx intlayer ci fill
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Error Handling
|
|
119
|
+
|
|
120
|
+
- यदि `INTLAYER_PROJECT_CREDENTIALS` सेट नहीं है, तो कमांड error के साथ exit होगा।
|
|
121
|
+
- यदि `INTLAYER_PROJECT_CREDENTIALS` valid JSON नहीं है, तो कमांड error के साथ exit होगा।
|
|
122
|
+
- यदि कोई प्रोजेक्ट path मौजूद नहीं है, तो इसे warning के साथ skip किया जाएगा।
|
|
123
|
+
- यदि कोई प्रोजेक्ट fail होता है, तो कमांड non-zero status code के साथ exit होगा।
|
|
124
|
+
|
|
125
|
+
## Use Cases
|
|
126
|
+
|
|
127
|
+
- **मोनोरेपो स्वचालन**: मोनोरेपो में कई प्रोजेक्ट पर Intlayer कमांड चलाएं
|
|
128
|
+
- **CI/CD pipelines**: continuous integration workflows में शब्दकोश प्रबंधन को स्वचालित करें
|
|
129
|
+
- **बल्क operations**: एक साथ कई Intlayer प्रोजेक्ट पर एक ही operation perform करें
|
|
130
|
+
- **Secret management**: environment variables का उपयोग करके कई प्रोजेक्ट के लिए क्रेडेंशियल को सुरक्षित रूप से manage करें
|
|
131
|
+
|
|
132
|
+
## Security Best Practices
|
|
133
|
+
|
|
134
|
+
- अपने CI/CD platform में `INTLAYER_PROJECT_CREDENTIALS` को encrypted secrets के रूप में store करें
|
|
135
|
+
- कभी भी क्रेडेंशियल को version control में commit न करें
|
|
136
|
+
- विभिन्न deployment environments के लिए environment-specific क्रेडेंशियल का उपयोग करें
|
|
137
|
+
- नियमित रूप से क्रेडेंशियल rotate करें
|
package/docs/hi/cli/index.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2024-08-11
|
|
3
|
-
updatedAt:
|
|
3
|
+
updatedAt: 2026-01-06
|
|
4
4
|
title: CLI
|
|
5
5
|
description: Intlayer CLI का उपयोग करके अपनी बहुभाषी वेबसाइट का प्रबंधन कैसे करें, यह जानें। इस ऑनलाइन दस्तावेज़ में दिए गए चरणों का पालन करके कुछ ही मिनटों में अपना प्रोजेक्ट सेटअप करें।
|
|
6
6
|
keywords:
|
|
@@ -17,6 +17,9 @@ slugs:
|
|
|
17
17
|
- concept
|
|
18
18
|
- cli
|
|
19
19
|
history:
|
|
20
|
+
- version: 7.5.11
|
|
21
|
+
date: 2026-01-06
|
|
22
|
+
changes: projects list कमांड जोड़ें
|
|
20
23
|
- version: 7.5.9
|
|
21
24
|
date: 2025-12-30
|
|
22
25
|
changes: init कमांड जोड़ें
|
|
@@ -119,6 +122,7 @@ Intlayer कई कॉन्फ़िगरेशन फ़ाइल प्र
|
|
|
119
122
|
- **[शब्दकोश बनाएं](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/cli/build.md)** - कंटेंट घोषणा फ़ाइलों से अपने शब्दकोश बनाएं
|
|
120
123
|
- **[शब्दकोश देखें](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/cli/watch.md)** - परिवर्तनों पर नजर रखें और स्वचालित रूप से शब्दकोश बनाएं
|
|
121
124
|
- **[CLI संस्करण जांचें](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/cli/version.md)** - इंस्टॉल किए गए Intlayer CLI संस्करण की जांच करें
|
|
125
|
+
- **[प्रोजेक्ट सूची](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/cli/list_projects.md)** - एक निर्देशिका या git रिपॉजिटरी में सभी Intlayer प्रोजेक्ट सूचीबद्ध करें
|
|
122
126
|
|
|
123
127
|
### शब्दकोश प्रबंधन
|
|
124
128
|
|
|
@@ -166,6 +170,7 @@ Intlayer कई कॉन्फ़िगरेशन फ़ाइल प्र
|
|
|
166
170
|
"intlayer:list": "npx intlayer content list",
|
|
167
171
|
"intlayer:test": "npx intlayer content test",
|
|
168
172
|
"intlayer:transform": "npx intlayer transform",
|
|
173
|
+
"intlayer:projects": "npx intlayer projects list",
|
|
169
174
|
"intlayer:doc:translate": "npx intlayer doc translate",
|
|
170
175
|
"intlayer:doc:review": "npx intlayer doc review"
|
|
171
176
|
}
|
|
@@ -175,3 +180,4 @@ Intlayer कई कॉन्फ़िगरेशन फ़ाइल प्र
|
|
|
175
180
|
>
|
|
176
181
|
> - `npx intlayer list` का उपयोग `npx intlayer content list` के बजाय करें
|
|
177
182
|
> - `npx intlayer test` का उपयोग `npx intlayer content test` के बजाय करें
|
|
183
|
+
> - `npx intlayer projects-list` या `npx intlayer pl` का उपयोग `npx intlayer projects list` के बजाय करें
|