lit-intlayer 9.4.3 → 9.5.0
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
CHANGED
|
@@ -69,8 +69,6 @@ With **per-locale content files**, **TypeScript autocompletion**, **tree-shakabl
|
|
|
69
69
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/interoperability.png?raw=true" alt="Feature" width="700"> | **Interoperability**<br><br>Allow interoperability with react-i18next, next-i18next, next-intl, react-intl, vue-i18n. <br><br> - [Intlayer and react-intl](https://intlayer.org/blog/intlayer-with-react-intl) <br> - [Intlayer and next-intl](https://intlayer.org/blog/intlayer-with-next-intl) <br> - [Intlayer and next-i18next](https://intlayer.org/blog/intlayer-with-next-i18next) <br> - [Intlayer and vue-i18n](https://intlayer.org/blog/intlayer-with-vue-i18n) <br> - [Intlayer compat adapters](https://intlayer.org/doc/compatibility) |
|
|
70
70
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/benchmark.png?raw=true" alt="Feature" width="700"> | **Performances & Benchmark**<br><br>Uses advanced tree-shaking and dynamic loading to boost performances and keep the solution as light as possible. <br><br> - [Performances & Benchmark](https://intlayer.org/doc/benchmark) |
|
|
71
71
|
|
|
72
|
-
---
|
|
73
|
-
|
|
74
72
|
## 📦 Installation
|
|
75
73
|
|
|
76
74
|
Start your journey with Intlayer today and experience a smoother, more powerful approach to internationalization.
|
|
@@ -2,11 +2,11 @@ import { LocalesValues } from '@intlayer/types/module_augmentation';
|
|
|
2
2
|
/**
|
|
3
3
|
* Get the current locale from storage (cookie or localStorage).
|
|
4
4
|
*/
|
|
5
|
-
export declare const localeInStorage: import('intlayer').Locale;
|
|
5
|
+
export declare const localeInStorage: import('@intlayer/types').Locale;
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Use localeInStorage instead.
|
|
8
8
|
*/
|
|
9
|
-
export declare const localeCookie: import('intlayer').Locale;
|
|
9
|
+
export declare const localeCookie: import('@intlayer/types').Locale;
|
|
10
10
|
/**
|
|
11
11
|
* Persist the locale to storage (cookie and/or localStorage).
|
|
12
12
|
*/
|
|
@@ -19,14 +19,14 @@ export declare const setLocaleCookie: (locale: LocalesValues, isCookieEnabled: b
|
|
|
19
19
|
* Returns the current locale from storage and a setter.
|
|
20
20
|
*/
|
|
21
21
|
export declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
|
|
22
|
-
localeStorage: import('intlayer').Locale;
|
|
22
|
+
localeStorage: import('@intlayer/types').Locale;
|
|
23
23
|
setLocaleStorage: (locale: LocalesValues) => void;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
* @deprecated Use useLocaleStorage instead.
|
|
27
27
|
*/
|
|
28
28
|
export declare const useLocaleCookie: (isCookieEnabled?: boolean) => {
|
|
29
|
-
localeStorage: import('intlayer').Locale;
|
|
29
|
+
localeStorage: import('@intlayer/types').Locale;
|
|
30
30
|
setLocaleStorage: (locale: LocalesValues) => void;
|
|
31
31
|
};
|
|
32
32
|
//# sourceMappingURL=useLocaleStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocaleStorage.d.ts","sourceRoot":"","sources":["../../../src/client/useLocaleStorage.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"useLocaleStorage.d.ts","sourceRoot":"","sources":["../../../src/client/useLocaleStorage.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,eAAe,kCAAmD,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,YAAY,kCAAkB,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,aAAa,EACrB,iBAAiB,OAAO,SAKtB,CAAC;AAEL;;GAEG;AACH,eAAO,MAAM,eAAe,WAXlB,aAAa,mBACJ,OAAO,SAUuB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,kBAAkB,OAAO;;;CAUzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,qBAfuB,OAAO;;;CAeX,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lit-intlayer",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Lit applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -103,28 +103,28 @@
|
|
|
103
103
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
104
104
|
},
|
|
105
105
|
"dependencies": {
|
|
106
|
-
"@intlayer/api": "9.
|
|
107
|
-
"@intlayer/config": "9.
|
|
108
|
-
"@intlayer/core": "9.
|
|
109
|
-
"@intlayer/editor": "9.
|
|
110
|
-
"@intlayer/types": "9.
|
|
106
|
+
"@intlayer/api": "9.5.0",
|
|
107
|
+
"@intlayer/config": "9.5.0",
|
|
108
|
+
"@intlayer/core": "9.5.0",
|
|
109
|
+
"@intlayer/editor": "9.5.0",
|
|
110
|
+
"@intlayer/types": "9.5.0"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
|
-
"@types/node": "26.
|
|
113
|
+
"@types/node": "26.5.0",
|
|
114
114
|
"@typescript/typescript6": "^6.0.2",
|
|
115
115
|
"@utils/ts-config": "1.0.4",
|
|
116
116
|
"@utils/ts-config-types": "1.0.4",
|
|
117
117
|
"@utils/tsdown-config": "1.0.4",
|
|
118
118
|
"fast-glob": "3.3.3",
|
|
119
119
|
"rimraf": "6.1.3",
|
|
120
|
-
"tsdown": "0.
|
|
120
|
+
"tsdown": "0.23.0",
|
|
121
121
|
"typescript": "7.0.2",
|
|
122
122
|
"vite": "8.2.2",
|
|
123
123
|
"vite-plugin-dts": "5.1.0",
|
|
124
|
-
"vitest": "
|
|
124
|
+
"vitest": "5.0.0"
|
|
125
125
|
},
|
|
126
126
|
"peerDependencies": {
|
|
127
|
-
"intlayer": "9.
|
|
127
|
+
"intlayer": "9.5.0",
|
|
128
128
|
"lit": ">=3.0.0"
|
|
129
129
|
},
|
|
130
130
|
"peerDependenciesMeta": {
|