diff options
| author | Joseph Eiba <josepheiba@icloud.com> | 2025-09-30 15:26:40 +0100 |
|---|---|---|
| committer | mistivia <i@mistivia.com> | 2025-10-01 23:39:54 +0800 |
| commit | 2e7f198a8108c53c6162be0d156edfce85195aa3 (patch) | |
| tree | 2f9ace96817eb3c2c917f99f8e5d80f6f6be80dd /src/translations.js | |
| parent | 78ccdfc3a8324b54f69806df1ac2da2289695002 (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/translations.js')
| -rw-r--r-- | src/translations.js | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/src/translations.js b/src/translations.js new file mode 100644 index 0000000..af430cb --- /dev/null +++ b/src/translations.js @@ -0,0 +1,127 @@ +const translations = { + chinese: { + // Buttons + open: "打开", + save: "保存", + clear: "清空", + copyToClipboard: "复制到剪贴板", + share: "分享", + + // Format options + noLimit: "无禁限", + masterDuel: "大师决斗", + cnSimplified: "简中", + + // Deck sections + mainDeck: "主卡组", + extraDeck: "额外卡组", + sideDeck: "副卡组", + + // Search + searchPlaceholder: "搜索卡牌...", + + // Pagination + prevPage: "上一页", + nextPage: "下一页", + + // Points display + points: "点数:", + + // Footer links + sourceCode: "源代码", + followMistivia: "关注", + thankYou: "谢谢喵~", + + // Alert messages + ydkCopied: "YDK卡组码已复制到剪贴板", + shareLinkCopied: "分享链接已复制到剪贴板", + failed: "失败!", + + // Loading + loading: "加载中..." + }, + english: { + // Buttons + open: "Open", + save: "Save", + clear: "Clear", + copyToClipboard: "Copy to Clipboard", + share: "Share", + + // Format options + noLimit: "No Limit", + masterDuel: "Master Duel", + cnSimplified: "Chinese OCG", + + // Deck sections + mainDeck: "Main Deck", + extraDeck: "Extra Deck", + sideDeck: "Side Deck", + + // Search + searchPlaceholder: "Search cards...", + + // Pagination + prevPage: "Previous", + nextPage: "Next", + + // Points display + points: "Points: ", + + // Footer links + sourceCode: "Source Code", + followMistivia: "Follow", + thankYou: "Thank you~", + + // Alert messages + ydkCopied: "YDK deck code copied to clipboard", + shareLinkCopied: "Share link copied to clipboard", + failed: "Failed!", + + // Loading + loading: "Loading..." + }, + japanese: { + // Buttons + open: "開く", + save: "保存", + clear: "クリア", + copyToClipboard: "クリップボードにコピー", + share: "シェア", + + // Format options + noLimit: "制限なし", + masterDuel: "マスターデュエル", + cnSimplified: "簡体字中国語", + + // Deck sections + mainDeck: "メインデッキ", + extraDeck: "エクストラデッキ", + sideDeck: "サイドデッキ", + + // Search + searchPlaceholder: "カードを検索...", + + // Pagination + prevPage: "前のページ", + nextPage: "次のページ", + + // Points display + points: "ポイント:", + + // Footer links + sourceCode: "ソースコード", + followMistivia: "フォロー", + thankYou: "ありがとうにゃ〜", + + // Alert messages + ydkCopied: "YDKデッキコードをクリップボードにコピーしました", + shareLinkCopied: "シェアリンクをクリップボードにコピーしました", + failed: "失敗!", + + // Loading + loading: "読み込み中..." + } +}; + +export default translations;
\ No newline at end of file |
