intlayer 1.2.0 → 1.2.1

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 +7 -9
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -142,11 +142,9 @@ const pageContent = {
142
142
  module.exports = pageContent;
143
143
  ```
144
144
 
145
- #### Using CommonJS modules
145
+ #### Using JSON
146
146
 
147
147
  ```json
148
- // src/app/[locale]/page.content.json
149
-
150
148
  {
151
149
  "id": "page",
152
150
  "getStarted": {
@@ -154,9 +152,9 @@ module.exports = pageContent;
154
152
  "nodeType": "translation",
155
153
  "en": "Get started by editing",
156
154
  "fr": "Commencez par éditer",
157
- "es": "Comience por editar",
155
+ "es": "Comience por editar"
158
156
  },
159
- "pageLink": "src/app/page.tsx",
157
+ "pageLink": "src/app/page.tsx"
160
158
  },
161
159
  "nestedContent": {
162
160
  "id": "enumeration",
@@ -167,10 +165,10 @@ module.exports = pageContent;
167
165
  "0": "No cars",
168
166
  "1": "One car",
169
167
  ">5": "Some cars",
170
- ">19": "Many cars",
171
- },
172
- },
173
- };
168
+ ">19": "Many cars"
169
+ }
170
+ }
171
+ }
174
172
  ```
175
173
 
176
174
  This version emphasizes ease of use, practical steps, and the professional application of Intlayer in a Next.js environment.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intlayer",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
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": [
@@ -51,9 +51,9 @@
51
51
  ],
52
52
  "dependencies": {
53
53
  "webpack": "^5.91.0",
54
- "@intlayer/config": "^1.2.0",
55
- "@intlayer/core": "^1.2.0",
56
- "intlayer": "^1.2.0"
54
+ "@intlayer/config": "^1.2.1",
55
+ "@intlayer/core": "^1.2.1",
56
+ "intlayer": "^1.2.1"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@changesets/changelog-github": "0.5.0",