summaryrefslogtreecommitdiff
path: root/src/components/FgmodClipboardButton.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/FgmodClipboardButton.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/FgmodClipboardButton.tsx')
-rw-r--r--src/components/FgmodClipboardButton.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/FgmodClipboardButton.tsx b/src/components/FgmodClipboardButton.tsx
index 6f65955..efc5490 100644
--- a/src/components/FgmodClipboardButton.tsx
+++ b/src/components/FgmodClipboardButton.tsx
@@ -4,6 +4,7 @@ import { FaClipboard, FaCheck } from "react-icons/fa";
import { checkFgmodDirectory } from "../api/lsfgApi";
import { showClipboardErrorToast } from "../utils/toastUtils";
import { copyWithVerification } from "../utils/clipboardUtils";
+import t from '../i18n/i18n';
export function FgmodClipboardButton() {
const [isLoading, setIsLoading] = useState(false);
@@ -93,7 +94,7 @@ export function FgmodClipboardButton() {
color: showSuccess ? "#4CAF50" : "inherit",
fontWeight: showSuccess ? "bold" : "normal"
}}>
- {showSuccess ? "Copied to clipboard" : isLoading ? "Copying..." : "LSFG + DeckyFG"}
+ {showSuccess ? t('CLIPBOARD_COPIED', 'Copied to clipboard') : isLoading ? t('CLIPBOARD_COPYING', 'Copying...') : t('CLIPBOARD_LSFG_FGMOD', 'LSFG + DeckyFG')}
</div>
</div>
</ButtonItem>