We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e9a986 commit a6133f4Copy full SHA for a6133f4
2 files changed
.changeset/light-games-learn.md
@@ -0,0 +1,5 @@
1
+---
2
+"lingo.dev": patch
3
4
+
5
+--file option
packages/cli/src/cli/cmd/i18n.ts
@@ -95,7 +95,9 @@ export default new Command()
95
if (flags.file?.length) {
96
buckets = buckets
97
.map((bucket: any) => {
98
- const paths = bucket.paths.filter((path: any) => flags.file!.find((file) => path.pathPattern?.match(file)));
+ const paths = bucket.paths.filter((path: any) =>
99
+ flags.file!.find((file) => path.pathPattern?.includes(file)),
100
+ );
101
return { ...bucket, paths };
102
})
103
.filter((bucket: any) => bucket.paths.length > 0);
0 commit comments