@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 CHANGED
@@ -3,6 +3,8 @@
3
3
  > Modern localization workflow tooling for TypeScript applications.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@mariokreitz/langsync.svg?style=flat-square&color=2563eb)](https://www.npmjs.com/package/@mariokreitz/langsync)
6
+ [![CI](https://img.shields.io/github/actions/workflow/status/mariokreitz/langsync/ci.yml?branch=main&style=flat-square&label=CI)](https://github.com/mariokreitz/langsync/actions/workflows/ci.yml)
7
+ [![codecov](https://img.shields.io/codecov/c/github/mariokreitz/langsync?style=flat-square)](https://codecov.io/gh/mariokreitz/langsync)
6
8
  [![Node](https://img.shields.io/node/v/@mariokreitz/langsync?style=flat-square&color=2563eb)](https://nodejs.org)
7
9
  [![License](https://img.shields.io/npm/l/@mariokreitz/langsync.svg?style=flat-square)](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, including configuration reference, every CLI command,
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://github.com/mariokreitz/langsync**
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/shared/config';
1
+ import '@mariokreitz/langsync-sdk';