@intlayer/sync-po-plugin 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.
|
package/dist/types/loadPO.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Locale } from "@intlayer/types/allLocales";
|
|
|
2
2
|
import { FilePathPattern } from "@intlayer/types/filePathPattern";
|
|
3
3
|
import { Plugin } from "@intlayer/types/plugin";
|
|
4
4
|
//#region src/loadPO.d.ts
|
|
5
|
-
type LoadPOPluginOptions = {
|
|
5
|
+
export type LoadPOPluginOptions = {
|
|
6
6
|
/**
|
|
7
7
|
* The source of the plugin.
|
|
8
8
|
* Is a function to build the source from the key and locale.
|
|
@@ -61,7 +61,6 @@ type LoadPOPluginOptions = {
|
|
|
61
61
|
* Read-only PO ingestion plugin: loads gettext PO files as dictionaries
|
|
62
62
|
* without ever writing back to them.
|
|
63
63
|
*/
|
|
64
|
-
declare const loadPO: (options: LoadPOPluginOptions) => Plugin;
|
|
64
|
+
export declare const loadPO: (options: LoadPOPluginOptions) => Plugin;
|
|
65
65
|
//#endregion
|
|
66
|
-
export { LoadPOPluginOptions, loadPO };
|
|
67
66
|
//# sourceMappingURL=loadPO.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadPO.d.ts","names":[],"sources":["../../src/loadPO.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"loadPO.d.ts","names":[],"sources":["../../src/loadPO.ts"],"mappings":";;;;YASY;;;;;;;;;;;;EAYV,QAAQ;;;;;;;;;;;;;;EAeR,SAAS;;;;;;;;;;;;;;;;;;;EAoBT;;;;;;;;EASA;;;;;;qBAOW,SAAM,SAAa,wBAAsB"}
|
package/dist/types/poFormat.d.ts
CHANGED
|
@@ -4,17 +4,16 @@ import { FormatCodec } from "@intlayer/engine/syncPluginKit";
|
|
|
4
4
|
* Parse a PO file string into a flat msgid → msgstr record.
|
|
5
5
|
* Skips the PO header (msgid ""), comment lines, and plural/context keywords.
|
|
6
6
|
*/
|
|
7
|
-
declare const parsePO: (fileContent: string) => Record<string, string>;
|
|
7
|
+
export declare const parsePO: (fileContent: string) => Record<string, string>;
|
|
8
8
|
/**
|
|
9
9
|
* Serialize a flat key → value record to PO file format.
|
|
10
10
|
* Non-string values are silently skipped.
|
|
11
11
|
*/
|
|
12
|
-
declare const serializePO: (content: Record<string, unknown>, locale?: string) => string;
|
|
12
|
+
export declare const serializePO: (content: Record<string, unknown>, locale?: string) => string;
|
|
13
13
|
/**
|
|
14
14
|
* PO payload codec bridging {@link parsePO} / {@link serializePO} to the
|
|
15
15
|
* sync-plugin kit.
|
|
16
16
|
*/
|
|
17
|
-
declare const poCodec: FormatCodec;
|
|
17
|
+
export declare const poCodec: FormatCodec;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { parsePO, poCodec, serializePO };
|
|
20
19
|
//# sourceMappingURL=poFormat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"poFormat.d.ts","names":[],"sources":["../../src/poFormat.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"poFormat.d.ts","names":[],"sources":["../../src/poFormat.ts"],"mappings":";;;;;;qBAsBa,UAAO,wBAA0B;;;;;qBAsEjC,cAAW,SACb,yBAAuB;;;;;qBA+BrB,SAAS"}
|
package/dist/types/syncPO.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Plugin } from "@intlayer/types/plugin";
|
|
|
4
4
|
import { extractKeyAndLocaleFromPath } from "@intlayer/engine/syncPluginKit";
|
|
5
5
|
import { DictionaryLocation } from "@intlayer/types/dictionary";
|
|
6
6
|
//#region src/syncPO.d.ts
|
|
7
|
-
type SyncPOPluginOptions = {
|
|
7
|
+
export type SyncPOPluginOptions = {
|
|
8
8
|
/**
|
|
9
9
|
* The source of the plugin.
|
|
10
10
|
* Is a function to build the source from the key and locale.
|
|
@@ -48,7 +48,7 @@ type SyncPOPluginOptions = {
|
|
|
48
48
|
* Two-way PO synchronization plugin: ingests gettext PO files as dictionaries
|
|
49
49
|
* and writes the merged build output back to the same files.
|
|
50
50
|
*/
|
|
51
|
-
declare const syncPO: (options: SyncPOPluginOptions) => Promise<Plugin>;
|
|
51
|
+
export declare const syncPO: (options: SyncPOPluginOptions) => Promise<Plugin>;
|
|
52
52
|
//#endregion
|
|
53
|
-
export {
|
|
53
|
+
export { extractKeyAndLocaleFromPath, parsePO, serializePO };
|
|
54
54
|
//# sourceMappingURL=syncPO.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syncPO.d.ts","names":[],"sources":["../../src/syncPO.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"syncPO.d.ts","names":[],"sources":["../../src/syncPO.ts"],"mappings":";;;;;;YAeY;;;;;;;;;;;EAWV,QAAQ;;;;;;;;;;;;;;;;;;;EAoBR,WAAW;;;;;;;;EASX;;;;;;qBAOW,SAAM,SAAmB,wBAAsB,QAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/sync-po-plugin",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A plugin for Intlayer that syncs Portable Object (.po) files to dictionaries.",
|
|
6
6
|
"keywords": [
|
|
@@ -72,21 +72,21 @@
|
|
|
72
72
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@intlayer/config": "9.
|
|
76
|
-
"@intlayer/core": "9.
|
|
77
|
-
"@intlayer/engine": "9.
|
|
78
|
-
"@intlayer/types": "9.
|
|
75
|
+
"@intlayer/config": "9.5.0",
|
|
76
|
+
"@intlayer/core": "9.5.0",
|
|
77
|
+
"@intlayer/engine": "9.5.0",
|
|
78
|
+
"@intlayer/types": "9.5.0",
|
|
79
79
|
"fast-glob": "3.3.3"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@types/node": "26.
|
|
82
|
+
"@types/node": "26.5.0",
|
|
83
83
|
"@utils/ts-config": "1.0.4",
|
|
84
84
|
"@utils/ts-config-types": "1.0.4",
|
|
85
85
|
"@utils/tsdown-config": "1.0.4",
|
|
86
86
|
"rimraf": "6.1.3",
|
|
87
|
-
"tsdown": "0.
|
|
87
|
+
"tsdown": "0.23.0",
|
|
88
88
|
"typescript": "7.0.2",
|
|
89
|
-
"vitest": "
|
|
89
|
+
"vitest": "5.0.0"
|
|
90
90
|
},
|
|
91
91
|
"engines": {
|
|
92
92
|
"node": ">=14.18"
|