summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2026-08-03 14:36:43 -0400
committerGitHub <noreply@github.com>2026-08-03 14:36:43 -0400
commit1bba458079c36c4f95b757e820c746a0f95ed64f (patch)
tree52c1cad716b92c784d2946d063cc36b34255ea5e /scripts
parent5598bb0e97fd9a0e16f63c4c93a4dc6ae1f169ab (diff)
parentc52d1fa86d302d0d6cb29808aa62c755c7b33362 (diff)
downloaddecky-lsfg-vk-1bba458079c36c4f95b757e820c746a0f95ed64f.tar.gz
decky-lsfg-vk-1bba458079c36c4f95b757e820c746a0f95ed64f.zip
Merge pull request #231 from sana2dang/language
Add multiple languages
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build_i18n_json.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/build_i18n_json.sh b/scripts/build_i18n_json.sh
new file mode 100644
index 0000000..36b3b48
--- /dev/null
+++ b/scripts/build_i18n_json.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+TARGET_DIR="defaults/i18n"
+
+# Check if the directory exists
+if [ ! -d "$TARGET_DIR" ]; then
+ echo "Error: Directory $TARGET_DIR not found."
+ exit 1
+fi
+
+# Use jq to merge files
+jq -n '
+ reduce inputs as $i ( {}; . + { (input_filename | split("/") | last | split(".json")[0]): $i } )
+' "$TARGET_DIR"/*.json > './src/i18n/languages.json' \ No newline at end of file