lingo.dev 0.87.10 → 0.87.11
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/cli.cjs +9 -6
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +9 -6
- package/build/cli.mjs.map +1 -1
- package/package.json +1 -1
package/build/cli.mjs
CHANGED
|
@@ -3156,12 +3156,15 @@ function createMdxCodePlaceholderLoader() {
|
|
|
3156
3156
|
const response = extractCodePlaceholders(input2);
|
|
3157
3157
|
return response.content;
|
|
3158
3158
|
},
|
|
3159
|
-
async push(locale, data, originalInput) {
|
|
3160
|
-
const
|
|
3159
|
+
async push(locale, data, originalInput, originalLocale, pullInput) {
|
|
3160
|
+
const sourceInfo = extractCodePlaceholders(originalInput ?? "");
|
|
3161
|
+
const currentInfo = extractCodePlaceholders(pullInput ?? "");
|
|
3162
|
+
const codePlaceholders = _20.merge(
|
|
3163
|
+
sourceInfo.codePlaceholders,
|
|
3164
|
+
currentInfo.codePlaceholders
|
|
3165
|
+
);
|
|
3161
3166
|
let result = data;
|
|
3162
|
-
for (const [placeholder, original] of Object.entries(
|
|
3163
|
-
response.codePlaceholders
|
|
3164
|
-
)) {
|
|
3167
|
+
for (const [placeholder, original] of Object.entries(codePlaceholders)) {
|
|
3165
3168
|
const replacement = original.startsWith(">") ? _20.trimStart(original, "> ") : original;
|
|
3166
3169
|
result = result.replaceAll(placeholder, replacement);
|
|
3167
3170
|
}
|
|
@@ -5658,7 +5661,7 @@ function validateParams2(i18nConfig, flags) {
|
|
|
5658
5661
|
// package.json
|
|
5659
5662
|
var package_default = {
|
|
5660
5663
|
name: "lingo.dev",
|
|
5661
|
-
version: "0.87.
|
|
5664
|
+
version: "0.87.11",
|
|
5662
5665
|
description: "Lingo.dev CLI",
|
|
5663
5666
|
private: false,
|
|
5664
5667
|
publishConfig: {
|