aboutsummaryrefslogtreecommitdiff
path: root/client-web/scripts/reformat_json.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-04-03 18:08:52 +0200
committermetamuffin <metamuffin@disroot.org>2024-04-03 18:08:52 +0200
commitedbe7ad1be0a52dd4220f65d1ac98163a0a1b774 (patch)
tree01dce2d09562b0c52c6c8b370ef889fe0e057fbf /client-web/scripts/reformat_json.ts
parent93d09d0aaef7586389daa360c1a361e915c4a228 (diff)
downloadkeks-meet-edbe7ad1be0a52dd4220f65d1ac98163a0a1b774.tar
keks-meet-edbe7ad1be0a52dd4220f65d1ac98163a0a1b774.tar.bz2
keks-meet-edbe7ad1be0a52dd4220f65d1ac98163a0a1b774.tar.zst
autogenerate japanese translation
Diffstat (limited to 'client-web/scripts/reformat_json.ts')
-rw-r--r--client-web/scripts/reformat_json.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/client-web/scripts/reformat_json.ts b/client-web/scripts/reformat_json.ts
new file mode 100644
index 0000000..35fc1dd
--- /dev/null
+++ b/client-web/scripts/reformat_json.ts
@@ -0,0 +1,16 @@
+
+
+
+
+const decoder = new TextDecoder();
+let text = ""
+for await (const chunk of Deno.stdin.readable) {
+ text += decoder.decode(chunk);
+}
+
+for (const ob of text.split("\n")) {
+ if (!ob.length) continue
+ console.log(JSON.stringify(JSON.parse(ob), null, 4));
+}
+
+