summaryrefslogtreecommitdiff
path: root/src/components/SmartClipboardButton.tsx
diff options
context:
space:
mode:
authorKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2026-08-03 14:36:43 -0400
committerGitHub <noreply@github.com>2026-08-03 14:36:43 -0400
commit9080ea21a68ec0817168a45811f3d51ade8d6be0 (patch)
tree52c1cad716b92c784d2946d063cc36b34255ea5e /src/components/SmartClipboardButton.tsx
parentb936baab13b026d4355844d94616a622753a7370 (diff)
parente0681b06efdee3dcacb6ddfca515d947b802faff (diff)
downloaddecky-lsfg-vk-9080ea21a68ec0817168a45811f3d51ade8d6be0.tar.gz
decky-lsfg-vk-9080ea21a68ec0817168a45811f3d51ade8d6be0.zip
Merge pull request #231 from sana2dang/language
Add multiple languages
Diffstat (limited to 'src/components/SmartClipboardButton.tsx')
-rw-r--r--src/components/SmartClipboardButton.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/SmartClipboardButton.tsx b/src/components/SmartClipboardButton.tsx
index c90515a..8da239a 100644
--- a/src/components/SmartClipboardButton.tsx
+++ b/src/components/SmartClipboardButton.tsx
@@ -4,6 +4,7 @@ import { FaClipboard, FaCheck } from "react-icons/fa";
import { getLaunchOption } from "../api/lsfgApi";
import { showClipboardErrorToast } from "../utils/toastUtils";
import { copyWithVerification } from "../utils/clipboardUtils";
+import t from '../i18n/i18n';
export function SmartClipboardButton() {
const [isLoading, setIsLoading] = useState(false);
@@ -74,7 +75,7 @@ export function SmartClipboardButton() {
color: showSuccess ? "#4CAF50" : "inherit",
fontWeight: showSuccess ? "bold" : "normal"
}}>
- {showSuccess ? "Copied to clipboard" : isLoading ? "Copying..." : "Copy Launch Option"}
+ {showSuccess ? t('CLIPBOARD_COPIED', 'Copied to clipboard') : isLoading ? t('CLIPBOARD_COPYING', 'Copying...') : t('CLIPBOARD_COPY_LAUNCH', 'Copy Launch Option')}
</div>
</div>
</ButtonItem>