From f4e2769d069fcf87da5ec7f39e0d372903bdb810 Mon Sep 17 00:00:00 2001 From: sana2dang Date: Thu, 12 Mar 2026 16:07:04 +0900 Subject: Apply i18n to all UI components with ko/ja translations - Add src/i18n/i18n.ts translation engine (ported from SimpleDeckyTDP) - Add defaults/i18n/{ko,ja,template}.json with 80 translation keys - Add defaults/i18n/language_metadata.json and steam_language_map.json - Add scripts/build_i18n_json.sh to generate languages.json - Apply t() to all 10 components: Content, ConfigurationSection, FlatpaksModal, FpsMultiplierControl, InstallationButton, NerdStuffModal, ProfileManagement, SmartClipboardButton, FgmodClipboardButton, UsageInstructions Co-Authored-By: Claude Sonnet 4.6 --- scripts/build_i18n_json.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 scripts/build_i18n_json.sh (limited to 'scripts/build_i18n_json.sh') 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 -- cgit v1.2.3