aboutsummaryrefslogtreecommitdiff
path: root/src/components/left_panel.svelte
diff options
context:
space:
mode:
authorJoseph Eiba <josepheiba@icloud.com>2025-09-30 15:26:40 +0100
committermistivia <i@mistivia.com>2025-10-01 23:39:54 +0800
commit2e7f198a8108c53c6162be0d156edfce85195aa3 (patch)
tree2f9ace96817eb3c2c917f99f8e5d80f6f6be80dd /src/components/left_panel.svelte
parent78ccdfc3a8324b54f69806df1ac2da2289695002 (diff)
feat: Add initial language support for English and Japanese
- Add translation framework for UI elements - Implement language switching functionality - Add English and Japanese translations for UI components - Card names and effects translation to be implemented in future commits
Diffstat (limited to 'src/components/left_panel.svelte')
-rw-r--r--src/components/left_panel.svelte5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/left_panel.svelte b/src/components/left_panel.svelte
index a2c14c5..bcfdba7 100644
--- a/src/components/left_panel.svelte
+++ b/src/components/left_panel.svelte
@@ -9,6 +9,7 @@
} from '../left_panel';
import { cardImageUrl } from '../utils';
+ import { currentTranslations } from '../language';
</script>
@@ -24,8 +25,8 @@
<pre class="card-desc-text">{$leftPanelCardDesc}</pre>
<div style="height:3em;line-height:1.0;overflow:hidden;">
<div style="break-inside:avoid;"><p style="text-align:center;"><small>
- <a class="link" href="https://github.com/mistivia/ygo-deck-builder">源代码</a>
- <br>关注 <a class="link" href="https://mistivia.com">Mistivia</a> 谢谢喵~
+ <a class="link" href="https://github.com/mistivia/ygo-deck-builder">{$currentTranslations.sourceCode}</a>
+ <br>{$currentTranslations.followMistivia} <a class="link" href="https://mistivia.com">Mistivia</a> {$currentTranslations.thankYou}
</small></p></div>
</div>
</div>