diff options
| author | sana2dang <sana2dang@naver.com> | 2026-03-12 16:07:04 +0900 |
|---|---|---|
| committer | sana2dang <sana2dang@naver.com> | 2026-03-12 16:07:04 +0900 |
| commit | f4e2769d069fcf87da5ec7f39e0d372903bdb810 (patch) | |
| tree | 373af291caf42538b20d14a0ff943ed6c83e670c /src/components/InstallationButton.tsx | |
| parent | 97a70cd68813f2174fe145ee79784e509d11a742 (diff) | |
| download | decky-lsfg-vk-f4e2769d069fcf87da5ec7f39e0d372903bdb810.tar.gz decky-lsfg-vk-f4e2769d069fcf87da5ec7f39e0d372903bdb810.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'src/components/InstallationButton.tsx')
| -rw-r--r-- | src/components/InstallationButton.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/InstallationButton.tsx b/src/components/InstallationButton.tsx index d0f2ce5..7f0ac96 100644 --- a/src/components/InstallationButton.tsx +++ b/src/components/InstallationButton.tsx @@ -1,5 +1,6 @@ import { ButtonItem, PanelSectionRow } from "@decky/ui"; import { FaDownload, FaTrash } from "react-icons/fa"; +import t from '../i18n/i18n'; interface InstallationButtonProps { isInstalled: boolean; @@ -20,7 +21,7 @@ export function InstallationButton({ if (isInstalling) { return ( <div style={{ display: "flex", alignItems: "center", gap: "8px" }}> - <div>Installing...</div> + <div>{t('INSTALL_INSTALLING', 'Installing...')}</div> </div> ); } @@ -28,7 +29,7 @@ export function InstallationButton({ if (isUninstalling) { return ( <div style={{ display: "flex", alignItems: "center", gap: "8px" }}> - <div>Uninstalling...</div> + <div>{t('INSTALL_UNINSTALLING', 'Uninstalling...')}</div> </div> ); } @@ -37,7 +38,7 @@ export function InstallationButton({ return ( <div style={{ display: "flex", alignItems: "center", gap: "8px" }}> <FaTrash /> - <div>Uninstall LSFG-VK</div> + <div>{t('INSTALL_UNINSTALL_BTN', 'Uninstall LSFG-VK')}</div> </div> ); } @@ -45,7 +46,7 @@ export function InstallationButton({ return ( <div style={{ display: "flex", alignItems: "center", gap: "8px" }}> <FaDownload /> - <div>Install LSFG-VK</div> + <div>{t('INSTALL_INSTALL_BTN', 'Install LSFG-VK')}</div> </div> ); }; |
