intlayer 4.1.3 → 4.1.4
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 +15 -15
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ const config: IntlayerConfig = {
|
|
|
61
61
|
export default config;
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
> For a complete list of available parameters, refer to the [configuration documentation](https://intlayer.org
|
|
64
|
+
> For a complete list of available parameters, refer to the [configuration documentation](https://intlayer.org/doc/concept/configuration).
|
|
65
65
|
|
|
66
66
|
## Example of usage
|
|
67
67
|
|
|
@@ -69,7 +69,7 @@ With Intlayer, you can declare your content in a structured way anywhere in your
|
|
|
69
69
|
|
|
70
70
|
By default, Intlayer scans for files with the extension `.content.{ts,tsx,js,jsx,mjs,cjs}`.
|
|
71
71
|
|
|
72
|
-
> can modify the default extension by setting the `contentDir` property in the [configuration file](https://intlayer.org
|
|
72
|
+
> can modify the default extension by setting the `contentDir` property in the [configuration file](https://intlayer.org/doc/concept/configuration).
|
|
73
73
|
|
|
74
74
|
```bash codeFormat="typescript"
|
|
75
75
|
.
|
|
@@ -167,7 +167,7 @@ const config: IntlayerConfig = {
|
|
|
167
167
|
};
|
|
168
168
|
```
|
|
169
169
|
|
|
170
|
-
> For a complete list of available parameters, refer to the [configuration documentation](https://intlayer.org
|
|
170
|
+
> For a complete list of available parameters, refer to the [configuration documentation](https://intlayer.org/doc/concept/configuration).
|
|
171
171
|
|
|
172
172
|
Output:
|
|
173
173
|
|
|
@@ -217,7 +217,7 @@ const config: IntlayerConfig = {
|
|
|
217
217
|
};
|
|
218
218
|
```
|
|
219
219
|
|
|
220
|
-
> For a complete list of available parameters, refer to the [configuration documentation](https://intlayer.org
|
|
220
|
+
> For a complete list of available parameters, refer to the [configuration documentation](https://intlayer.org/doc/concept/configuration).
|
|
221
221
|
|
|
222
222
|
Output:
|
|
223
223
|
|
|
@@ -256,7 +256,7 @@ Intlayer provides a CLI tool to:
|
|
|
256
256
|
- build dictionaries from your content declarations
|
|
257
257
|
- push and pull distant dictionaries from your CMS to your locale project
|
|
258
258
|
|
|
259
|
-
Consult [intlayer-cli](https://intlayer.org
|
|
259
|
+
Consult [intlayer-cli](https://intlayer.org/doc/concept/cli) for more information.
|
|
260
260
|
|
|
261
261
|
## Use Intlayer into your application
|
|
262
262
|
|
|
@@ -280,16 +280,16 @@ To use Intlayer in your Express application, you can use [express-intlayer](http
|
|
|
280
280
|
|
|
281
281
|
The `intlayer` package also provides some functions to help you to internationalize your application.
|
|
282
282
|
|
|
283
|
-
- [`getConfiguration()`](https://intlayer.org
|
|
284
|
-
- [`getTranslationContent()`](https://intlayer.org
|
|
285
|
-
- [`getEnumerationContent()`](https://intlayer.org
|
|
286
|
-
- [`getLocaleName()`](https://intlayer.org
|
|
287
|
-
- [`getLocaleLang()`](https://intlayer.org
|
|
288
|
-
- [`getHTMLTextDir()`](https://intlayer.org
|
|
289
|
-
- [`getPathWithoutLocale()`](https://intlayer.org
|
|
290
|
-
- [`getMultilingualUrls()`](https://intlayer.org
|
|
291
|
-
- [`getLocalizedUrl()`](https://intlayer.org
|
|
292
|
-
- [`getPathWithoutLocale()`](https://intlayer.org
|
|
283
|
+
- [`getConfiguration()`](https://intlayer.org/doc/packages/intlayer/getConfiguration)
|
|
284
|
+
- [`getTranslationContent()`](https://intlayer.org/doc/packages/intlayer/getTranslationContent)
|
|
285
|
+
- [`getEnumerationContent()`](https://intlayer.org/doc/packages/intlayer/getEnumerationContent)
|
|
286
|
+
- [`getLocaleName()`](https://intlayer.org/doc/packages/intlayer/getLocaleName)
|
|
287
|
+
- [`getLocaleLang()`](https://intlayer.org/doc/packages/intlayer/getLocaleLang)
|
|
288
|
+
- [`getHTMLTextDir()`](https://intlayer.org/doc/packages/intlayer/getHTMLTextDir)
|
|
289
|
+
- [`getPathWithoutLocale()`](https://intlayer.org/doc/packages/intlayer/getPathWithoutLocale)
|
|
290
|
+
- [`getMultilingualUrls()`](https://intlayer.org/doc/packages/intlayer/getMultilingualUrls)
|
|
291
|
+
- [`getLocalizedUrl()`](https://intlayer.org/doc/packages/intlayer/getLocalizedUrl)
|
|
292
|
+
- [`getPathWithoutLocale()`](https://intlayer.org/doc/packages/intlayer/getPathWithoutLocale)
|
|
293
293
|
|
|
294
294
|
## Read about Intlayer
|
|
295
295
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intlayer",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Manage internationalization i18n in a simple way, through TypeScript, declaration file, declare your multilingual content every where in your code.",
|
|
6
6
|
"keywords": [
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"./package.json"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@intlayer/config": "4.1.
|
|
62
|
-
"@intlayer/cli": "4.1.
|
|
63
|
-
"@intlayer/core": "^4.1.
|
|
61
|
+
"@intlayer/config": "4.1.4",
|
|
62
|
+
"@intlayer/cli": "4.1.4",
|
|
63
|
+
"@intlayer/core": "^4.1.4"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@changesets/changelog-github": "0.5.0",
|
|
@@ -75,14 +75,14 @@
|
|
|
75
75
|
"tsup": "^8.3.5",
|
|
76
76
|
"typescript": "^5.7.3",
|
|
77
77
|
"@utils/ts-config": "1.0.4",
|
|
78
|
-
"@utils/
|
|
78
|
+
"@utils/tsup-config": "1.0.4",
|
|
79
79
|
"@utils/eslint-config": "1.0.4",
|
|
80
|
-
"@utils/
|
|
80
|
+
"@utils/ts-config-types": "1.0.4"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@intlayer/cli": "4.1.
|
|
84
|
-
"@intlayer/config": "4.1.
|
|
85
|
-
"@intlayer/core": "^4.1.
|
|
83
|
+
"@intlayer/cli": "4.1.4",
|
|
84
|
+
"@intlayer/config": "4.1.4",
|
|
85
|
+
"@intlayer/core": "^4.1.4"
|
|
86
86
|
},
|
|
87
87
|
"engines": {
|
|
88
88
|
"node": ">=14.18"
|