intlayer 2.0.1 → 2.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 (2) hide show
  1. package/README.md +19 -19
  2. package/package.json +10 -10
package/README.md CHANGED
@@ -12,12 +12,12 @@
12
12
 
13
13
  `intlayer` package intend to declare your content in a structured way, using JavaScript.
14
14
 
15
- To build dictionaries from this declaration, you can use [intlayer-cli](https://github.com/aypineau/intlayer/blob/main/packages/intlayer-cli/readme.md).
16
- And to interpret intlayer dictionaries you can interpreters, such as [react-intlayer](https://github.com/aypineau/intlayer/blob/main/packages/react-intlayer/readme.md), or [next-intlayer](https://github.com/aypineau/intlayer/blob/main/packages/next-intlayer/readme.md)
15
+ To build dictionaries from this declaration, you can use [intlayer-cli](https://github.com/aypineau/intlayer/blob/main/packages/intlayer-cli/readme_en.md).
16
+ And to interpret intlayer dictionaries you can interpreters, such as [react-intlayer](https://github.com/aypineau/intlayer/blob/main/packages/react-intlayer/readme_en.md), or [next-intlayer](https://github.com/aypineau/intlayer/blob/main/packages/next-intlayer/readme_en.md)
17
17
 
18
18
  ## Getting Started with Intlayer
19
19
 
20
- [See how to use intlayer with NextJS](https://github.com/aypineau/intlayer/blob/main/readme.md)
20
+ [See how to use intlayer with NextJS](https://github.com/aypineau/intlayer/blob/main/readme_en.md)
21
21
 
22
22
  ### Install Package
23
23
 
@@ -95,8 +95,8 @@ const pageContent = {
95
95
  numberOfCar: enu({
96
96
  "<-1": "Less than minus one car",
97
97
  "-1": "Minus one car",
98
- "0": "No cars",
99
- "1": "One car",
98
+ 0: "No cars",
99
+ 1: "One car",
100
100
  ">5": "Some cars",
101
101
  ">19": "Many cars",
102
102
  }),
@@ -130,8 +130,8 @@ const pageContent = {
130
130
  numberOfCar: enu({
131
131
  "<-1": "Less than minus one car",
132
132
  "-1": "Minus one car",
133
- "0": "No cars",
134
- "1": "One car",
133
+ 0: "No cars",
134
+ 1: "One car",
135
135
  ">5": "Some cars",
136
136
  ">19": "Many cars",
137
137
  }),
@@ -147,20 +147,20 @@ module.exports = pageContent;
147
147
  ```json5
148
148
  // src/app/[locale]/page.content.json
149
149
  {
150
- "id": "page",
151
- "getStarted": {
152
- "main": {
153
- "nodeType": "translation",
154
- "en": "Get started by editing",
155
- "fr": "Commencez par éditer",
156
- "es": "Comience por editar",
150
+ id: "page",
151
+ getStarted: {
152
+ main: {
153
+ nodeType: "translation",
154
+ en: "Get started by editing",
155
+ fr: "Commencez par éditer",
156
+ es: "Comience por editar",
157
157
  },
158
- "pageLink": "src/app/page.tsx",
158
+ pageLink: "src/app/page.tsx",
159
159
  },
160
- "nestedContent": {
161
- "id": "enumeration",
162
- "nodeType": "enumeration",
163
- "numberOfCar": {
160
+ nestedContent: {
161
+ id: "enumeration",
162
+ nodeType: "enumeration",
163
+ numberOfCar: {
164
164
  "<-1": "Less than minus one car",
165
165
  "-1": "Minus one car",
166
166
  "0": "No cars",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intlayer",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "private": false,
5
5
  "description": "IntLayer is a layer of abstraction between the business logic and the data access layer. Manage internationalization in a simple way, through TypeScript, JavaScript or JSON declaration file.",
6
6
  "keywords": [
@@ -43,20 +43,20 @@
43
43
  "./package.json"
44
44
  ],
45
45
  "dependencies": {
46
- "webpack": "^5.91.0",
47
- "@intlayer/config": "^2.0.1",
48
- "intlayer": "^2.0.1",
49
- "@intlayer/core": "^2.0.1"
46
+ "webpack": "^5.92.1",
47
+ "@intlayer/config": "^2.0.2",
48
+ "@intlayer/core": "^2.0.2",
49
+ "intlayer": "^2.0.2"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@changesets/changelog-github": "0.5.0",
53
53
  "@changesets/cli": "2.27.1",
54
- "@types/node": "^20.12.7",
54
+ "@types/node": "^20.14.9",
55
55
  "rimraf": "5.0.5",
56
- "tsup": "^8.0.2",
57
- "typescript": "^5.4.5",
58
- "@utils/eslint-config": "^1.0.1",
59
- "@utils/ts-config": "^1.0.1"
56
+ "tsup": "^8.1.0",
57
+ "typescript": "^5.5.2",
58
+ "@utils/eslint-config": "^1.0.2",
59
+ "@utils/ts-config": "^1.0.2"
60
60
  },
61
61
  "engines": {
62
62
  "node": ">=14.18"