@verbatra/sdk 0.11.0 → 0.11.1
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 +1 -1
- package/dist/index.cjs +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +316 -122
- package/dist/index.d.ts +316 -122
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -73,7 +73,7 @@ export default defineConfig({
|
|
|
73
73
|
});
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
`files.pattern` must contain the `{locale}` token, and `targetLocales` must neither include `sourceLocale` nor list one locale twice. Beyond the required keys, the config carries optional `glossary` and `tone`, opt-in `prune` and `generatePlurals`, per-key `maxLength` review budgets,
|
|
76
|
+
`files.pattern` must contain the `{locale}` token, and `targetLocales` must neither include `sourceLocale` nor list one locale twice. Beyond the required keys, the config carries optional `glossary` and `tone`, opt-in `prune` and `generatePlurals`, the `files.localeStyle` path layout, opt-in `fuzzyCache` reuse, the `maxBatchSize` request size, per-key `maxLength` review budgets, the `maxTokens`/`budgetBehavior` run budget, dated `rates` for cost estimates, and the `extract` source-scanning settings. Every key, every default, and every provider's option shape is documented on the [Configuration page](https://verbatra.kreitz-webdev.de/docs/config-file); the providers and their key variables are on the [Providers page](https://verbatra.kreitz-webdev.de/docs/providers).
|
|
77
77
|
|
|
78
78
|
API keys are never part of the config. Each provider reads its own environment variable, and the SDK never accepts one as an argument.
|
|
79
79
|
|
package/dist/index.cjs
CHANGED
|
@@ -6947,8 +6947,10 @@ var AdapterRegistry = class {
|
|
|
6947
6947
|
* can silently shadow what is already there.
|
|
6948
6948
|
*
|
|
6949
6949
|
* An adapter whose format is a third-party `custom:` identifier is wrapped so that an unexpected
|
|
6950
|
-
* throw from any of its contract methods surfaces as an {@link AdapterError}
|
|
6951
|
-
*
|
|
6950
|
+
* throw from any of its contract methods surfaces as an {@link AdapterError} with code
|
|
6951
|
+
* `ADAPTER_FAILED` naming the format. An `AdapterError` the adapter raises itself, and a Node.js
|
|
6952
|
+
* system error carrying an errno-style code such as `ENOENT`, pass through unchanged. Built-in
|
|
6953
|
+
* adapters are registered as they are.
|
|
6952
6954
|
*
|
|
6953
6955
|
* @param adapter - The adapter to add.
|
|
6954
6956
|
* @returns This registry, for chaining.
|
|
@@ -18365,7 +18367,10 @@ var scaffoldingMetadata = {
|
|
|
18365
18367
|
* one. DeepL and Google Cloud Translation have no entry, since neither takes a token limit.
|
|
18366
18368
|
*/
|
|
18367
18369
|
providerTokenLimitKeys: SCAFFOLD_TOKEN_LIMIT_KEYS,
|
|
18368
|
-
/**
|
|
18370
|
+
/**
|
|
18371
|
+
* Every built-in i18n file format the SDK can read and write. A `custom:` format is never listed,
|
|
18372
|
+
* since its adapter ships outside verbatra.
|
|
18373
|
+
*/
|
|
18369
18374
|
supportedFormats: SUPPORTED_FORMATS
|
|
18370
18375
|
};
|
|
18371
18376
|
var defaultCreateWatcher = (paths) => {
|