@gtkx/i18n 2.0.0-beta.13 → 2.0.0-beta.15
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 +3 -3
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @gtkx/i18n
|
|
2
2
|
|
|
3
|
-
Gettext localization for
|
|
3
|
+
Gettext localization for GTK apps through react-i18next.
|
|
4
4
|
|
|
5
|
-
Translate React content with `useTranslation` and `Trans`.
|
|
5
|
+
Translate React content with `useTranslation` and `Trans`. Codegen, `gtkx dev` and builds extract messages into gettext catalogs and compile them, so the gettext tools must be on `PATH`. At startup, the app loads the catalog for the current locale.
|
|
6
6
|
|
|
7
7
|
In an existing GTKX app:
|
|
8
8
|
|
|
@@ -12,6 +12,6 @@ npm install @gtkx/i18n@beta
|
|
|
12
12
|
|
|
13
13
|
[Guide](https://gtkx.dev/v2/guide/internationalization) · [API reference](https://gtkx.dev/v2/reference/@gtkx/i18n/) · [GTKX](https://gtkx.dev)
|
|
14
14
|
|
|
15
|
-
GTKX requires Linux, Node.js, and the [native prerequisites](https://gtkx.dev/v2/guide/getting-started).
|
|
15
|
+
GTKX requires Linux, Node.js, and the [native prerequisites](https://gtkx.dev/v2/guide/getting-started#what-you-need).
|
|
16
16
|
|
|
17
17
|
[MPL-2.0](https://github.com/gtkx-org/gtkx/blob/main/LICENSE).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gtkx/i18n",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
4
|
-
"description": "Gettext localization for
|
|
3
|
+
"version": "2.0.0-beta.15",
|
|
4
|
+
"description": "Gettext localization for GTK apps through react-i18next.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gtkx",
|
|
7
7
|
"gtk",
|
|
@@ -62,20 +62,20 @@
|
|
|
62
62
|
"node": ">=26.7.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@gtkx/runtime": "^2.0.0-beta.
|
|
66
|
-
"i18next": "^
|
|
67
|
-
"react-i18next": "^
|
|
65
|
+
"@gtkx/runtime": "^2.0.0-beta.15",
|
|
66
|
+
"i18next": "^27.2.3",
|
|
67
|
+
"react-i18next": "^18.0.2"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@types/react": "^19.3",
|
|
71
71
|
"react": "^19.3"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@gtkx/config": "2.0.0-beta.
|
|
75
|
-
"@gtkx/testing": "2.0.0-beta.
|
|
76
|
-
"@gtkx/vitest": "2.0.0-beta.
|
|
74
|
+
"@gtkx/config": "2.0.0-beta.15",
|
|
75
|
+
"@gtkx/testing": "2.0.0-beta.15",
|
|
76
|
+
"@gtkx/vitest": "2.0.0-beta.15",
|
|
77
77
|
"@types/react": "^19.3.0",
|
|
78
|
-
"vitest": "5.1.
|
|
78
|
+
"vitest": "5.1.1"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"release": "node ../../scripts/release/publish-package.ts"
|