@italia/i18n 1.0.0-beta.0 → 1.0.0-beta.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 +6 -60
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
- # \i18n
1
+ # `@italia/i18n`
2
2
 
3
- Questa micro-libreria senza dipendenze ha l’obiettivo di fornire un Reactive Controller leggero per condividere e applicare traduzioni all’interno di componenti personalizzati. Non è pensata per sostituire strumenti di i18n completi come i18next
3
+ This zero-dependency micro-library provides a lightweight Reactive Controller for sharing and applying translations within custom elements. It is not intended to replace full-featured i18n tools such as i18next.
4
+
5
+ It is the foundation of Web Components that need translations in [`@italia/dev-kit-italia`](https://italia.github.io/dev-kit-italia).
4
6
 
5
7
  ## Installation
6
8
 
@@ -37,7 +39,7 @@ Majority of use cases appear to favor a single language per page. However, multi
37
39
  $name: 'Italiano',
38
40
  $dir: 'ltr',
39
41
 
40
- // le tue traduzioni
42
+ // your translations
41
43
  video_consent_accept: 'Accetto i cookie',
42
44
  },
43
45
  {
@@ -45,7 +47,7 @@ Majority of use cases appear to favor a single language per page. However, multi
45
47
  $name: 'English',
46
48
  $dir: 'ltr',
47
49
 
48
- // le tue traduzioni
50
+ // your translations
49
51
  video_consent_accept: 'Accept',
50
52
  },
51
53
  );
@@ -199,59 +201,3 @@ Now you can import `MyLocalizeController` and get strongly typed translations wh
199
201
  - Intuitive API for custom element authors
200
202
  - Consumers only need to load the translations they want and set the `lang` attribute
201
203
  - Translations can be loaded up front or on demand
202
-
203
- ## Linting and formatting
204
-
205
- To scan the project for linting and formatting errors, run
206
-
207
- ```bash
208
- npm run lint
209
- ```
210
-
211
- To automatically fix linting and formatting errors, run
212
-
213
- ```bash
214
- npm run format
215
- ```
216
-
217
- ## Testing with Web Test Runner
218
-
219
- To execute a single test run:
220
-
221
- ```bash
222
- npm run test
223
- ```
224
-
225
- To run the tests in interactive watch mode run:
226
-
227
- ```bash
228
- npm run test:watch
229
- ```
230
-
231
- ## Demoing with Storybook
232
-
233
- To run a local instance of Storybook for your component, run
234
-
235
- ```bash
236
- npm run storybook
237
- ```
238
-
239
- To build a production version of Storybook, run
240
-
241
- ```bash
242
- npm run storybook:build
243
- ```
244
-
245
- ## Tooling configs
246
-
247
- For most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.
248
-
249
- If you customize the configuration a lot, you can consider moving them to individual files.
250
-
251
- ## Local Demo with `web-dev-server`
252
-
253
- ```bash
254
- npm start
255
- ```
256
-
257
- To run a local development server that serves the basic demo located in `demo/index.html`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@italia/i18n",
3
3
  "description": "Translations utility del Design system .italia",
4
- "version": "1.0.0-beta.0",
4
+ "version": "1.0.0-beta.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -45,8 +45,8 @@
45
45
  "rollup": "^4.42.0",
46
46
  "tslib": "^2.6.3",
47
47
  "typescript": "^5.5.3",
48
- "@italia/test-config": "^1.0.0-beta.0",
49
- "@italia/typescript-config": "^1.0.0-beta.0"
48
+ "@italia/test-config": "^1.0.0-beta.2",
49
+ "@italia/typescript-config": "^1.0.0-beta.1"
50
50
  },
51
51
  "customElements": "custom-elements.json",
52
52
  "scripts": {