@lingo.dev/_compiler 0.3.2 → 0.3.4
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/build/index.cjs +8 -4
- package/build/index.mjs +8 -4
- package/package.json +2 -2
package/build/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var _unplugin = require('unplugin');
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "@lingo.dev/_compiler",
|
|
7
|
-
version: "0.3.
|
|
7
|
+
version: "0.3.4",
|
|
8
8
|
description: "Lingo.dev Compiler",
|
|
9
9
|
private: false,
|
|
10
10
|
publishConfig: {
|
|
@@ -1581,7 +1581,7 @@ var LCPAPI = class {
|
|
|
1581
1581
|
|
|
1582
1582
|
⭐️ Also:
|
|
1583
1583
|
1. If you don't yet have a ${details.name} API key, get one for free at ${details.getKeyLink}
|
|
1584
|
-
2. If you want to use a different LLM, update your configuration. Refer to documentation for help: https://
|
|
1584
|
+
2. If you want to use a different LLM, update your configuration. Refer to documentation for help: https://lingo.dev/compiler
|
|
1585
1585
|
3. If the model you want to use isn't supported yet, raise an issue in our open-source repo: https://lingo.dev/go/gh
|
|
1586
1586
|
|
|
1587
1587
|
✨
|
|
@@ -1730,6 +1730,10 @@ var LCPServer = (_class = class {
|
|
|
1730
1730
|
params.targetLocale
|
|
1731
1731
|
);
|
|
1732
1732
|
targetDictionary = this._mergeDictionaries(newTranslations, cache);
|
|
1733
|
+
targetDictionary = {
|
|
1734
|
+
...targetDictionary,
|
|
1735
|
+
locale: params.targetLocale
|
|
1736
|
+
};
|
|
1733
1737
|
await LCPCache.writeLocaleDictionary(targetDictionary, cacheParams);
|
|
1734
1738
|
}
|
|
1735
1739
|
const targetDictionaryWithFallback = this._mergeDictionaries(
|
|
@@ -2672,7 +2676,7 @@ var unplugin = _unplugin.createUnplugin.call(void 0,
|
|
|
2672
2676
|
⚠️ Lingo.dev Localization Compiler requires LLM model setup for the following locales: ${invalidLocales.join(", ")}.
|
|
2673
2677
|
|
|
2674
2678
|
⭐️ Next steps:
|
|
2675
|
-
1. Refer to documentation for help: https://
|
|
2679
|
+
1. Refer to documentation for help: https://lingo.dev/compiler
|
|
2676
2680
|
2. If you want to use a different LLM, raise an issue in our open-source repo: https://lingo.dev/go/gh
|
|
2677
2681
|
3. If you have questions, feature requests, or would like to contribute, join our Discord: https://lingo.dev/go/discord
|
|
2678
2682
|
|
|
@@ -2826,7 +2830,7 @@ function validateLLMKeyDetails(configuredProviders) {
|
|
|
2826
2830
|
console.log(_dedent2.default`
|
|
2827
2831
|
\n
|
|
2828
2832
|
⭐️ Also:
|
|
2829
|
-
1. If you want to use a different LLM, update your configuration. Refer to documentation for help: https://
|
|
2833
|
+
1. If you want to use a different LLM, update your configuration. Refer to documentation for help: https://lingo.dev/compiler
|
|
2830
2834
|
2. If the model/provider you want to use isn't supported yet, raise an issue in our open-source repo: https://lingo.dev/go/gh
|
|
2831
2835
|
3. If you have questions, feature requests, or would like to contribute, join our Discord: https://lingo.dev/go/discord
|
|
2832
2836
|
|
package/build/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { createUnplugin } from "unplugin";
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "@lingo.dev/_compiler",
|
|
7
|
-
version: "0.3.
|
|
7
|
+
version: "0.3.4",
|
|
8
8
|
description: "Lingo.dev Compiler",
|
|
9
9
|
private: false,
|
|
10
10
|
publishConfig: {
|
|
@@ -1581,7 +1581,7 @@ var LCPAPI = class {
|
|
|
1581
1581
|
|
|
1582
1582
|
⭐️ Also:
|
|
1583
1583
|
1. If you don't yet have a ${details.name} API key, get one for free at ${details.getKeyLink}
|
|
1584
|
-
2. If you want to use a different LLM, update your configuration. Refer to documentation for help: https://
|
|
1584
|
+
2. If you want to use a different LLM, update your configuration. Refer to documentation for help: https://lingo.dev/compiler
|
|
1585
1585
|
3. If the model you want to use isn't supported yet, raise an issue in our open-source repo: https://lingo.dev/go/gh
|
|
1586
1586
|
|
|
1587
1587
|
✨
|
|
@@ -1730,6 +1730,10 @@ var LCPServer = class {
|
|
|
1730
1730
|
params.targetLocale
|
|
1731
1731
|
);
|
|
1732
1732
|
targetDictionary = this._mergeDictionaries(newTranslations, cache);
|
|
1733
|
+
targetDictionary = {
|
|
1734
|
+
...targetDictionary,
|
|
1735
|
+
locale: params.targetLocale
|
|
1736
|
+
};
|
|
1733
1737
|
await LCPCache.writeLocaleDictionary(targetDictionary, cacheParams);
|
|
1734
1738
|
}
|
|
1735
1739
|
const targetDictionaryWithFallback = this._mergeDictionaries(
|
|
@@ -2672,7 +2676,7 @@ var unplugin = createUnplugin(
|
|
|
2672
2676
|
⚠️ Lingo.dev Localization Compiler requires LLM model setup for the following locales: ${invalidLocales.join(", ")}.
|
|
2673
2677
|
|
|
2674
2678
|
⭐️ Next steps:
|
|
2675
|
-
1. Refer to documentation for help: https://
|
|
2679
|
+
1. Refer to documentation for help: https://lingo.dev/compiler
|
|
2676
2680
|
2. If you want to use a different LLM, raise an issue in our open-source repo: https://lingo.dev/go/gh
|
|
2677
2681
|
3. If you have questions, feature requests, or would like to contribute, join our Discord: https://lingo.dev/go/discord
|
|
2678
2682
|
|
|
@@ -2826,7 +2830,7 @@ function validateLLMKeyDetails(configuredProviders) {
|
|
|
2826
2830
|
console.log(dedent3`
|
|
2827
2831
|
\n
|
|
2828
2832
|
⭐️ Also:
|
|
2829
|
-
1. If you want to use a different LLM, update your configuration. Refer to documentation for help: https://
|
|
2833
|
+
1. If you want to use a different LLM, update your configuration. Refer to documentation for help: https://lingo.dev/compiler
|
|
2830
2834
|
2. If the model/provider you want to use isn't supported yet, raise an issue in our open-source repo: https://lingo.dev/go/gh
|
|
2831
2835
|
3. If you have questions, feature requests, or would like to contribute, join our Discord: https://lingo.dev/go/discord
|
|
2832
2836
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingo.dev/_compiler",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Lingo.dev Compiler",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"unplugin": "^2.1.2",
|
|
49
49
|
"vitest": "^2.1.4",
|
|
50
50
|
"zod": "^3.24.1",
|
|
51
|
-
"@lingo.dev/_sdk": "0.9.
|
|
51
|
+
"@lingo.dev/_sdk": "0.9.2"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"dev": "tsup --watch",
|