@open-xchange/vite-plugin-i18next-gettext 1.1.0 → 1.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## `1.1.2` – 2025-Jun-23
4
+
5
+ - chore: bump @open-xchange/i18next-po-parser
6
+
7
+ ## `1.1.1` – 2025-May-08
8
+
9
+ - chore: bump dependencies
10
+
3
11
  ## `1.1.0` – 2025-May-05
4
12
 
5
13
  - added: generate separate POT files per i18next namespace
package/README.md CHANGED
@@ -8,7 +8,7 @@ This plugin has the following responsibilities:
8
8
  - When building the project, `.po` files will be converted to and written as i18next-compatible JSON files into the bundle.
9
9
  - When building the project, the source code will be scanned for translation strings (`t` function calls), and a `.pot` file containing all strings will be generated into the output directory.
10
10
 
11
- This plugin is designed to work together with the i18next plugin `@open-xchange/i18next-plugin-pofile-backend` that will load the `.po` files into the i18next instance.
11
+ This plugin is designed to work together with the i18next plugin [i18next-resources-to-backend](https://github.com/i18next/i18next-resources-to-backend) that will load the `.po` files into the i18next instance.
12
12
 
13
13
  ## Usage
14
14
 
@@ -30,7 +30,7 @@ export default defineConfig(() => {
30
30
  i18nextPlugin({
31
31
  poFiles: "i18n/*.po",
32
32
  srcFiles: "src/**/*.{js,jsx,ts,tsx}",
33
- potFile: "main.pot",
33
+ potFile: "$NAMESPACE.pot",
34
34
  projectName: "My Project",
35
35
  }),
36
36
  ],
@@ -41,7 +41,7 @@ export default defineConfig(() => {
41
41
 
42
42
  | Name | Type | Default | Description |
43
43
  | - | - | - | - |
44
- | `poFiles` | `string\|string[]` | _required_ | Glob pattern(s) for all `.po` files containing the translations. |
44
+ | `poFiles` | `string\|string[]` | _required_ | Glob pattern(s) for all PO files containing the translations. |
45
45
  | `srcFiles` | `string\|string[]` | _required_ | Glob pattern(s) for all source files to be scanned for UI strings. |
46
- | `potFile` | `string` | _required_ | Path to the `.pot` file to be generated when building the project, relative to the build output directory. |
47
- | `projectName` | `string` | _required_ | The project name to be inserted into the `.pot` file under the key "Project-Id-Version". |
46
+ | `potFile` | `string` | _required_ | Path to the POT files to be generated when building the project, relative to the build output directory. Should contain the placeholder `$NAMESPACE` if the project contains translation strings in different i18next namespaces. |
47
+ | `projectName` | `string` | _required_ | The project name to be inserted into the POT file under the key "Project-Id-Version". May contain the placeholder `$NAMESPACE`. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xchange/vite-plugin-i18next-gettext",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Vite integration of i18next using gettext",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,7 +11,7 @@
11
11
  "engines": {
12
12
  "node": ">=20.18"
13
13
  },
14
- "packageManager": "yarn@4.9.1",
14
+ "packageManager": "yarn@4.9.2",
15
15
  "type": "module",
16
16
  "exports": "./dist/index.js",
17
17
  "files": [
@@ -25,18 +25,18 @@
25
25
  "lint": "tsc && tsc --project src/tsconfig.json --noEmit && eslint ."
26
26
  },
27
27
  "dependencies": {
28
- "@open-xchange/i18next-po-parser": "^0.0.2",
28
+ "@open-xchange/i18next-po-parser": "^1.0.0",
29
29
  "gettext-converter": "^1.3.0",
30
30
  "picomatch": "^4.0.2"
31
31
  },
32
32
  "devDependencies": {
33
- "@open-xchange/linter-presets": "^1.2.30",
34
- "@types/node": "^22.15.3",
35
- "eslint": "^9.25.1",
33
+ "@open-xchange/linter-presets": "^1.4.0",
34
+ "@types/node": "^24.0.3",
35
+ "eslint": "^9.29.0",
36
36
  "jiti": "^2.4.2",
37
37
  "premove": "^4.0.0",
38
38
  "typescript": "^5.8.3",
39
- "vite": "^6.3.4"
39
+ "vite": "^6.3.5"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "vite": "^5.3.0 || ^6.0.0"