aboutsummaryrefslogtreecommitdiff
path: root/packages/pogen/src/po2ts.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-02-16 16:31:36 +0100
committerFlorian Dold <florian@dold.me>2022-02-16 16:31:45 +0100
commit54d5cc02d1a7c54758f3a391385e1f8684fde108 (patch)
treed9c983d3ac0ed2d10c4225d3460574e806ba6cf8 /packages/pogen/src/po2ts.ts
parent22323c082d70e1ad6e0ffde509c644a6532b9fd9 (diff)
downloadwallet-core-54d5cc02d1a7c54758f3a391385e1f8684fde108.tar.xz
pogen: implement merge and emit subcommands
Diffstat (limited to 'packages/pogen/src/po2ts.ts')
-rw-r--r--packages/pogen/src/po2ts.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/pogen/src/po2ts.ts b/packages/pogen/src/po2ts.ts
index ac85b9b76..e11443f4f 100644
--- a/packages/pogen/src/po2ts.ts
+++ b/packages/pogen/src/po2ts.ts
@@ -22,12 +22,10 @@
import * as po2json from "po2json";
import * as fs from "fs";
import * as path from "path";
+import glob = require("glob");
export function po2ts(): void {
- const files = fs
- .readdirSync("./src/i18n")
- .filter((x) => x.endsWith(".po"))
- .map((x) => path.join("./src/i18n/", x));
+ const files = glob.sync("src/i18n/*.po");
if (files.length === 0) {
console.error("no .po files found in src/i18n/");