intlayer 4.1.0 → 4.1.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 (2) hide show
  1. package/README.md +16 -17
  2. package/package.json +9 -9
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <div align="center">
2
- <a href="https://www.npmjs.com/package/intlayer">
2
+ <a href="https://intlayer.org">
3
3
  <img src="https://raw.githubusercontent.com/aymericzip/intlayer/572ae9c9acafb74307b81530c1931a8e98990aef/docs/assets/logo.png" width="500" alt="intlayer" />
4
4
  </a>
5
5
  </div>
@@ -14,7 +14,6 @@
14
14
  <a href="https://npmjs.org/package/intlayer">
15
15
  <img alt="types included" src="https://badgen.net/npm/types/intlayer?labelColor=49516F&color=8994BC"
16
16
  />
17
- </a>
18
17
  </div>
19
18
 
20
19
  # intlayer: Manage Multilingual Content Declaration (i18n)
@@ -62,7 +61,7 @@ const config: IntlayerConfig = {
62
61
  export default config;
63
62
  ```
64
63
 
65
- > For a complete list of available parameters, refer to the [configuration documentation](https://github.com/aymericzip/intlayer/blob/main/docs/en/configuration.md).
64
+ > For a complete list of available parameters, refer to the [configuration documentation](https://intlayer.org//doc/concept/configuration).
66
65
 
67
66
  ## Example of usage
68
67
 
@@ -70,7 +69,7 @@ With Intlayer, you can declare your content in a structured way anywhere in your
70
69
 
71
70
  By default, Intlayer scans for files with the extension `.content.{ts,tsx,js,jsx,mjs,cjs}`.
72
71
 
73
- > can modify the default extension by setting the `contentDir` property in the [configuration file](https://github.com/aymericzip/intlayer/blob/main/docs/en/configuration.md).
72
+ > can modify the default extension by setting the `contentDir` property in the [configuration file](https://intlayer.org//doc/concept/configuration).
74
73
 
75
74
  ```bash codeFormat="typescript"
76
75
  .
@@ -168,7 +167,7 @@ const config: IntlayerConfig = {
168
167
  };
169
168
  ```
170
169
 
171
- > For a complete list of available parameters, refer to the [configuration documentation](https://github.com/aymericzip/intlayer/blob/main/docs/en/configuration.md).
170
+ > For a complete list of available parameters, refer to the [configuration documentation](https://intlayer.org//doc/concept/configuration).
172
171
 
173
172
  Output:
174
173
 
@@ -218,7 +217,7 @@ const config: IntlayerConfig = {
218
217
  };
219
218
  ```
220
219
 
221
- > For a complete list of available parameters, refer to the [configuration documentation](https://github.com/aymericzip/intlayer/blob/main/docs/en/configuration.md).
220
+ > For a complete list of available parameters, refer to the [configuration documentation](https://intlayer.org//doc/concept/configuration).
222
221
 
223
222
  Output:
224
223
 
@@ -257,7 +256,7 @@ Intlayer provides a CLI tool to:
257
256
  - build dictionaries from your content declarations
258
257
  - push and pull distant dictionaries from your CMS to your locale project
259
258
 
260
- Consult [intlayer-cli](https://github.com/aymericzip/intlayer/blob/main/docs/en/intlayer_cli.md) for more information.
259
+ Consult [intlayer-cli](https://intlayer.org//doc/concept/cli) for more information.
261
260
 
262
261
  ## Use Intlayer into your application
263
262
 
@@ -281,16 +280,16 @@ To use Intlayer in your Express application, you can use [express-intlayer](http
281
280
 
282
281
  The `intlayer` package also provides some functions to help you to internationalize your application.
283
282
 
284
- - [`getConfiguration()`](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/intlayer/getConfiguration.md)
285
- - [`getTranslationContent()`](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/intlayer/getTranslationContent.md)
286
- - [`getEnumerationContent()`](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/intlayer/getEnumerationContent.md)
287
- - [`getLocaleName()`](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/intlayer/getLocaleName.md)
288
- - [`getLocaleLang()`](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/intlayer/getLocaleLang.md)
289
- - [`getHTMLTextDir()`](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/intlayer/getHTMLTextDir.md)
290
- - [`getPathWithoutLocale()`](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/intlayer/getPathWithoutLocale.md)
291
- - [`getMultilingualUrls()`](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/intlayer/getMultilingualUrls.md)
292
- - [`getLocalizedUrl()`](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/intlayer/getLocalizedUrl.md)
293
- - [`getPathWithoutLocale()`](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/intlayer/getPathWithoutLocale.md)
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)
294
293
 
295
294
  ## Read about Intlayer
296
295
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intlayer",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
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.0",
62
- "@intlayer/core": "^4.1.0",
63
- "@intlayer/cli": "4.1.0"
61
+ "@intlayer/core": "^4.1.2",
62
+ "@intlayer/cli": "4.1.2",
63
+ "@intlayer/config": "4.1.2"
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/eslint-config": "1.0.4",
78
+ "@utils/tsup-config": "1.0.4",
79
79
  "@utils/ts-config-types": "1.0.4",
80
- "@utils/tsup-config": "1.0.4"
80
+ "@utils/eslint-config": "1.0.4"
81
81
  },
82
82
  "peerDependencies": {
83
- "@intlayer/cli": "4.1.0",
84
- "@intlayer/config": "4.1.0",
85
- "@intlayer/core": "^4.1.0"
83
+ "@intlayer/config": "4.1.2",
84
+ "@intlayer/cli": "4.1.2",
85
+ "@intlayer/core": "^4.1.2"
86
86
  },
87
87
  "engines": {
88
88
  "node": ">=14.18"