lingo.dev 0.92.17 → 0.92.18
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 +8 -2
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +8 -2
- package/build/cli.mjs.map +1 -1
- package/package.json +1 -1
package/build/cli.cjs
CHANGED
|
@@ -2258,6 +2258,9 @@ function createPoDataLoader(params) {
|
|
|
2258
2258
|
const sections = input2.split("\n\n").filter(Boolean);
|
|
2259
2259
|
for (const section of sections) {
|
|
2260
2260
|
const sectionPo = _gettextparser2.default.po.parse(section);
|
|
2261
|
+
if (Object.keys(sectionPo.translations).length === 0) {
|
|
2262
|
+
continue;
|
|
2263
|
+
}
|
|
2261
2264
|
const contextKey = _lodash2.default.keys(sectionPo.translations)[0];
|
|
2262
2265
|
const entries = sectionPo.translations[contextKey];
|
|
2263
2266
|
Object.entries(entries).forEach(([msgid, entry]) => {
|
|
@@ -2277,6 +2280,9 @@ function createPoDataLoader(params) {
|
|
|
2277
2280
|
const originalSections = _optionalChain([originalInput, 'optionalAccess', _110 => _110.split, 'call', _111 => _111("\n\n"), 'access', _112 => _112.filter, 'call', _113 => _113(Boolean)]) || [];
|
|
2278
2281
|
const result = originalSections.map((section) => {
|
|
2279
2282
|
const sectionPo = _gettextparser2.default.po.parse(section);
|
|
2283
|
+
if (Object.keys(sectionPo.translations).length === 0) {
|
|
2284
|
+
return null;
|
|
2285
|
+
}
|
|
2280
2286
|
const contextKey = _lodash2.default.keys(sectionPo.translations)[0];
|
|
2281
2287
|
const entries = sectionPo.translations[contextKey];
|
|
2282
2288
|
const msgid = Object.keys(entries).find((key) => entries[key].msgid);
|
|
@@ -2311,7 +2317,7 @@ function createPoDataLoader(params) {
|
|
|
2311
2317
|
).trim();
|
|
2312
2318
|
}
|
|
2313
2319
|
return section.trim();
|
|
2314
|
-
}).join("\n\n");
|
|
2320
|
+
}).filter(Boolean).join("\n\n");
|
|
2315
2321
|
return result;
|
|
2316
2322
|
}
|
|
2317
2323
|
});
|
|
@@ -6544,7 +6550,7 @@ async function renderHero() {
|
|
|
6544
6550
|
// package.json
|
|
6545
6551
|
var package_default = {
|
|
6546
6552
|
name: "lingo.dev",
|
|
6547
|
-
version: "0.92.
|
|
6553
|
+
version: "0.92.18",
|
|
6548
6554
|
description: "Lingo.dev CLI",
|
|
6549
6555
|
private: false,
|
|
6550
6556
|
publishConfig: {
|