summaryrefslogtreecommitdiff
path: root/src/components/FpsMultiplierControl.tsx
diff options
context:
space:
mode:
authorsana2dang <sana2dang@naver.com>2026-03-12 16:07:04 +0900
committersana2dang <sana2dang@naver.com>2026-03-12 16:07:04 +0900
commitb3bd38494122b402a7c1c3873747148da2538ef6 (patch)
tree373af291caf42538b20d14a0ff943ed6c83e670c /src/components/FpsMultiplierControl.tsx
parent0752e8eba063d8d2a694a5b99637615e9cbffbf1 (diff)
downloaddecky-lsfg-vk-b3bd38494122b402a7c1c3873747148da2538ef6.tar.gz
decky-lsfg-vk-b3bd38494122b402a7c1c3873747148da2538ef6.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
Diffstat (limited to 'src/components/FpsMultiplierControl.tsx')
-rw-r--r--src/components/FpsMultiplierControl.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/FpsMultiplierControl.tsx b/src/components/FpsMultiplierControl.tsx
index 5ac31bb..206643e 100644
--- a/src/components/FpsMultiplierControl.tsx
+++ b/src/components/FpsMultiplierControl.tsx
@@ -1,6 +1,7 @@
import { PanelSectionRow, DialogButton, Focusable } from "@decky/ui";
import { ConfigurationData } from "../config/configSchema";
import { MULTIPLIER } from "../config/generatedConfigSchema";
+import t from '../i18n/i18n';
interface FpsMultiplierControlProps {
config: ConfigurationData;
@@ -49,7 +50,7 @@ export function FpsMultiplierControl({
textAlign: "center"
}}
>
- {config.multiplier < 2 ? "OFF" : `${config.multiplier}X`}
+ {config.multiplier < 2 ? t('MULTIPLIER_OFF', 'OFF') : `${config.multiplier}X`}
</div>
<DialogButton
style={{