fix: add missing translation (#215)

This commit is contained in:
Justin Lin authored and GitHub committed 2026-10-10 09:52:28 +11:00
commit 4de8bbfee0
6 files changed
+19 -11

No files matched your search

+1 -1
View File
@@ -113,7 +113,7 @@ const registerGuest = async () => {
:icon="['fas', 'circle-exclamation']" :icon="['fas', 'circle-exclamation']"
class="px-1 text-sm" class="px-1 text-sm"
/> />
<span>建議使用電腦全螢幕執行</span> <span>{{ t('authform.recommand_pc_fullscreen') }}</span>
</div> </div>
<form @submit.prevent="handleSubmit()" class="w-full"> <form @submit.prevent="handleSubmit()" class="w-full">
<div v-if="socialLogin && hasSocialLogins"> <div v-if="socialLogin && hasSocialLogins">
+1 -1
View File
@@ -59,7 +59,7 @@ onMounted(async () => {
}) })
questInstruction.value = quest.instruction questInstruction.value = quest.instruction
} catch (error) { } catch (error) {
toast.error('Failed to load quest detail:', error) toast.error(t('quest.load_quest_instruction_failed'), error)
} }
handleColour() handleColour()
}) })
+2 -2
View File
@@ -99,8 +99,8 @@ async function computeGraphData() {
graphData.value = { nodes, edges } graphData.value = { nodes, edges }
} catch (error) { } catch (error) {
console.error('Error computing graph data:', error) console.error(t('quest_map.compute_graph_failed'), error)
toast.error('Failed to load quest data') toast.error(t('quest_map.load_quest_data_failed'))
} }
} }
function handleNodeClick(node: Node) { function handleNodeClick(node: Node) {
+7 -3
View File
@@ -52,7 +52,8 @@
"already_registered": "Already have an account?", "already_registered": "Already have an account?",
"not_registered": "Don't have an account?", "not_registered": "Don't have an account?",
"continue_as_guest": "Continue as Guest", "continue_as_guest": "Continue as Guest",
"password_rules": "At least 8 characters, including uppercase and lowercase letters and numbers" "password_rules": "At least 8 characters, including uppercase and lowercase letters and numbers",
"recommand_pc_fullscreen": "Recommended to use desktop version in full-screen mode"
}, },
"authform_error": { "authform_error": {
"too_many_requests": "Too many requests, please try again in 2 minutes", "too_many_requests": "Too many requests, please try again in 2 minutes",
@@ -76,11 +77,14 @@
"quest_map": { "quest_map": {
"title": "Quest Map", "title": "Quest Map",
"intro": "Embark on your Linux adventure!", "intro": "Embark on your Linux adventure!",
"load_quest_map_failed": "Failed to Load Quest Map" "load_quest_map_failed": "Failed to Load Quest Map",
"compute_graph_failed": "Error computing graph data: ",
"load_quest_data_failed": "Failed to Load Quest Data"
}, },
"quest": { "quest": {
"start": "Start Adventure", "start": "Start Adventure",
"locked": "Quest not unlocked" "locked": "Quest not unlocked",
"load_quest_instruction_failed": "Failed to Load Quest Instruction: "
}, },
"leaderboard": { "leaderboard": {
"title": "Leaderboard", "title": "Leaderboard",
+7 -3
View File
@@ -52,7 +52,8 @@
"already_registered": "已經有帳號了嗎?", "already_registered": "已經有帳號了嗎?",
"not_registered": "還沒有帳號嗎?", "not_registered": "還沒有帳號嗎?",
"continue_as_guest": "以訪客身分繼續", "continue_as_guest": "以訪客身分繼續",
"password_rules": "至少 8 個字元,包含數字及大小寫字母" "password_rules": "至少 8 個字元,包含數字及大小寫字母",
"recommand_pc_fullscreen": "建議使用電腦版全螢幕操作"
}, },
"authform_error": { "authform_error": {
"too_many_requests": "太多請求,兩分鐘後再試一次", "too_many_requests": "太多請求,兩分鐘後再試一次",
@@ -76,11 +77,14 @@
"quest_map": { "quest_map": {
"title": "關卡地圖", "title": "關卡地圖",
"intro": "踏上你的Linux冒險之旅吧!", "intro": "踏上你的Linux冒險之旅吧!",
"load_quest_map_failed": "無法讀取關卡地圖" "load_quest_map_failed": "無法讀取關卡地圖",
"compute_graph_failed": "計算關卡地圖時出錯:",
"load_quest_data_failed": "無法讀取關卡"
}, },
"quest": { "quest": {
"start": "開始冒險", "start": "開始冒險",
"locked": "關卡尚未解鎖" "locked": "關卡尚未解鎖",
"load_quest_instruction_failed": "無法讀取關卡說明:"
}, },
"leaderboard": { "leaderboard": {
"title": "排行榜", "title": "排行榜",
+1 -1
View File
@@ -85,7 +85,7 @@ async function check({
return return
} }
console.error(err) console.error(err)
error(t('authform_error.registration_failed')) error(t('authform_error.auth_failed'))
} }
} }
</script> </script>