From edbe7ad1be0a52dd4220f65d1ac98163a0a1b774 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 3 Apr 2024 18:08:52 +0200 Subject: autogenerate japanese translation --- client-web/scripts/reformat_json.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 client-web/scripts/reformat_json.ts (limited to 'client-web/scripts/reformat_json.ts') 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)); +} + + -- cgit v1.2.3-70-g09d2