@inglorious/i18n 1.2.1 → 1.2.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.
- package/package.json +3 -3
- package/types/index.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/i18n",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Internationalization for Inglorious Web: an i18next instance driven by a store entity.",
|
|
5
5
|
"author": "Matteo Antony Mistretta <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"i18next": "^26.5.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@inglorious/eslint-config": "1.1.
|
|
41
|
-
"@inglorious/store": "11.0
|
|
40
|
+
"@inglorious/eslint-config": "1.1.4",
|
|
41
|
+
"@inglorious/store": "11.1.0",
|
|
42
42
|
"prettier": "^3.9.6",
|
|
43
43
|
"vitest": "^5.0.0"
|
|
44
44
|
},
|
package/types/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export interface I18nOptions {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export interface I18nEntity {
|
|
42
|
-
id
|
|
42
|
+
id?: string
|
|
43
43
|
type: string
|
|
44
44
|
/** The active locale. */
|
|
45
45
|
locale?: string
|
|
@@ -65,7 +65,7 @@ export type LanguageOption = {
|
|
|
65
65
|
label: string
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export
|
|
68
|
+
export type I18nType = {
|
|
69
69
|
create(entity: I18nEntity): void
|
|
70
70
|
/**
|
|
71
71
|
* Switches to `locale`, remembers it and sets `<html lang>`. Unsupported
|