From e2d03f9b2570813ea4c00ecb4d2805b4694907e0 Mon Sep 17 00:00:00 2001 From: Irvan Fauziansyah <4778169+IrvanFza@users.noreply.github.com> Date: Thu, 15 Jan 2026 22:33:38 +0700 Subject: [PATCH] feat: add i18n framework with Indonesian translation support (#124) * feat: add i18n support with separate translation files - Extract translations from store.js to separate files for easier management - Add translation files for English (en.js), Indonesian (id.js), Turkish (tr.js), and Chinese (zh.js) - Load translations via window.translations object before Alpine store initialization - Add Bahasa Indonesia option to language selector * feat: translate remaining hardcoded UI strings - Update index.html to use t() for Menu and GitHub labels - Update views to translate Tier, Quota, Live, tier badges, and close button - Update components to use translated error messages and confirmation dialogs - Update utils to use translated validation and error messages - Update app-init.js to use translated OAuth success/error messages --- public/index.html | 9 +- public/js/app-init.js | 11 +- public/js/components/claude-config.js | 15 +- public/js/components/server-config.js | 28 +- public/js/store.js | 838 +------------------------- public/js/translations/en.js | 327 ++++++++++ public/js/translations/id.js | 371 ++++++++++++ public/js/translations/tr.js | 316 ++++++++++ public/js/translations/zh.js | 332 ++++++++++ public/js/utils/account-actions.js | 10 +- public/js/utils/error-handler.js | 11 +- public/js/utils/model-config.js | 4 +- public/js/utils/validators.js | 12 +- public/views/accounts.html | 8 +- public/views/dashboard.html | 8 +- public/views/models.html | 2 +- public/views/settings.html | 1 + 17 files changed, 1413 insertions(+), 890 deletions(-) create mode 100644 public/js/translations/en.js create mode 100644 public/js/translations/id.js create mode 100644 public/js/translations/tr.js create mode 100644 public/js/translations/zh.js diff --git a/public/index.html b/public/index.html index 46938c8..cd1b021 100644 --- a/public/index.html +++ b/public/index.html @@ -139,7 +139,7 @@