@mariokreitz/langsync 0.6.0 → 0.7.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 +20 -3
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +457 -975
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -37
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
> Modern localization workflow tooling for TypeScript applications.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@mariokreitz/langsync)
|
|
6
|
+
[](https://github.com/mariokreitz/langsync/actions/workflows/ci.yml)
|
|
7
|
+
[](https://codecov.io/gh/mariokreitz/langsync)
|
|
6
8
|
[](https://nodejs.org)
|
|
7
9
|
[](https://github.com/mariokreitz/langsync/blob/main/LICENSE)
|
|
8
10
|
|
|
@@ -102,12 +104,27 @@ or set `framework: 'none'` for custom setups. Omit `namespaces` for the default
|
|
|
102
104
|
`<input>/<locale>.json` layout, or set `namespaces.structure` to `locale-dir`
|
|
103
105
|
or `locale-prefix` for per-namespace files.
|
|
104
106
|
|
|
107
|
+
## SDK
|
|
108
|
+
|
|
109
|
+
Besides the CLI, LangSync ships a standalone SDK — `@mariokreitz/langsync-sdk` —
|
|
110
|
+
that exports the command runners (`runValidate`, `runSync`, `runFindMissing`,
|
|
111
|
+
`runTranslate`) as in-process, side-effect-free functions. Use it to drive the
|
|
112
|
+
same workflows from Node.js — editor integrations, custom scripts, or CI tooling
|
|
113
|
+
— without shelling out.
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
npm install @mariokreitz/langsync-sdk
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
See the [SDK reference](https://docs.langsync.kreitz-webdev.de/docs/sdk) for the
|
|
120
|
+
full surface, options, and result types.
|
|
121
|
+
|
|
105
122
|
## Documentation
|
|
106
123
|
|
|
107
|
-
Full documentation
|
|
108
|
-
and framework integration recipes:
|
|
124
|
+
Full documentation — configuration reference, every CLI command, the VS Code
|
|
125
|
+
extension, the SDK, and framework integration recipes:
|
|
109
126
|
|
|
110
|
-
**https://
|
|
127
|
+
**https://docs.langsync.kreitz-webdev.de**
|
|
111
128
|
|
|
112
129
|
## License
|
|
113
130
|
|
package/dist/cli.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import '@langsync
|
|
1
|
+
import '@mariokreitz/langsync-sdk';
|