lingo.dev 0.122.2 → 0.124.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/build/cli.cjs +8 -6
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +8 -6
- package/build/cli.mjs.map +1 -1
- package/package.json +4 -4
package/build/cli.cjs
CHANGED
|
@@ -775,9 +775,10 @@ var _prompts = require('@inquirer/prompts');
|
|
|
775
775
|
|
|
776
776
|
// src/cli/utils/find-locale-paths.ts
|
|
777
777
|
|
|
778
|
-
var _glob2 = require('glob');
|
|
778
|
+
var _glob2 = require('glob'); var pkg = _interopRequireWildcard(_glob2); var pkg2 = _interopRequireWildcard(_glob2);
|
|
779
779
|
|
|
780
780
|
|
|
781
|
+
var { glob } = pkg;
|
|
781
782
|
function findLocaleFiles(bucket) {
|
|
782
783
|
switch (bucket) {
|
|
783
784
|
case "json":
|
|
@@ -805,7 +806,7 @@ function findLocaleFiles(bucket) {
|
|
|
805
806
|
}
|
|
806
807
|
}
|
|
807
808
|
function findLocaleFilesWithExtension(ext2) {
|
|
808
|
-
const files =
|
|
809
|
+
const files = glob.sync(`**/*${ext2}`, {
|
|
809
810
|
ignore: ["node_modules/**", "package*.json", "i18n.json", "lingo.json"]
|
|
810
811
|
});
|
|
811
812
|
const localeFilePattern = new RegExp(`/([a-z]{2}(-[A-Z]{2})?)${ext2}$`);
|
|
@@ -849,7 +850,7 @@ function findLocaleFilesWithExtension(ext2) {
|
|
|
849
850
|
}
|
|
850
851
|
function findLocaleFilesForFilename(fileName) {
|
|
851
852
|
const pattern = fileName;
|
|
852
|
-
const localeFiles =
|
|
853
|
+
const localeFiles = glob.sync(`**/${fileName}`, {
|
|
853
854
|
ignore: ["node_modules/**", "package*.json", "i18n.json", "lingo.json"]
|
|
854
855
|
});
|
|
855
856
|
const localeFilesAndPatterns = localeFiles.map((file) => ({
|
|
@@ -1420,6 +1421,7 @@ var locale_default = new (0, _interactivecommander.Command)().command("locale").
|
|
|
1420
1421
|
|
|
1421
1422
|
|
|
1422
1423
|
|
|
1424
|
+
var { glob: glob2 } = pkg2;
|
|
1423
1425
|
function getBuckets(i18nConfig) {
|
|
1424
1426
|
const result = Object.entries(i18nConfig.buckets).map(
|
|
1425
1427
|
([bucketType, bucketEntry]) => {
|
|
@@ -1513,7 +1515,7 @@ function expandPlaceholderedGlob(_pathPattern, sourceLocale) {
|
|
|
1513
1515
|
);
|
|
1514
1516
|
const sourcePathPattern = pathPattern.replaceAll(/\[locale\]/g, sourceLocale);
|
|
1515
1517
|
const unixStylePattern = sourcePathPattern.replace(/\\/g, "/");
|
|
1516
|
-
const sourcePaths =
|
|
1518
|
+
const sourcePaths = glob2.sync(unixStylePattern, {
|
|
1517
1519
|
follow: true,
|
|
1518
1520
|
withFileTypes: true,
|
|
1519
1521
|
windowsPathsNoEscape: true
|
|
@@ -15193,7 +15195,7 @@ async function renderHero2() {
|
|
|
15193
15195
|
// package.json
|
|
15194
15196
|
var package_default = {
|
|
15195
15197
|
name: "lingo.dev",
|
|
15196
|
-
version: "0.
|
|
15198
|
+
version: "0.124.0",
|
|
15197
15199
|
description: "Lingo.dev CLI",
|
|
15198
15200
|
private: false,
|
|
15199
15201
|
repository: {
|
|
@@ -15301,7 +15303,7 @@ var package_default = {
|
|
|
15301
15303
|
}
|
|
15302
15304
|
},
|
|
15303
15305
|
bin: {
|
|
15304
|
-
|
|
15306
|
+
lingo: "./bin/cli.mjs"
|
|
15305
15307
|
},
|
|
15306
15308
|
files: [
|
|
15307
15309
|
"bin",
|