Browse Source

added missing i18n keys

Karl Lee 1 year ago
parent
commit
e7fb86190a

+ 3 - 4
src/lib/components/layout/Overlay/AccountPending.svelte

@@ -21,17 +21,16 @@
 		<div class="m-auto pb-10 flex flex-col justify-center">
 			<div class="max-w-md">
 				<div class="text-center dark:text-white text-2xl font-medium z-50">
-					Account Activation Pending<br /> Contact Admin for WebUI Access
+					{$i18n.t('Account Activation Pending')}<br /> {$i18n.t('Contact Admin for WebUI Access')}
 				</div>
 
 				<div class=" mt-4 text-center text-sm dark:text-gray-200 w-full">
-					Your account status is currently pending activation.<br /> To access the WebUI, please reach
-					out to the administrator. Admins can manage user statuses from the Admin Panel.
+					{$i18n.t('Your account status is currently pending activation.')}<br /> {$i18n.t('To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel.')}
 				</div>
 
 				{#if adminDetails}
 					<div class="mt-4 text-sm font-medium text-center">
-						<div>Admin: {adminDetails.name} ({adminDetails.email})</div>
+						<div>{$i18n.t('Admin')}: {adminDetails.name} ({adminDetails.email})</div>
 					</div>
 				{/if}
 

+ 6 - 1
src/lib/i18n/locales/zh-CN/translation.json

@@ -544,5 +544,10 @@
 	"You're a helpful assistant.": "你是一个有帮助的助手。",
 	"You're now logged in.": "已登录。",
 	"Youtube": "YouTube",
-	"Youtube Loader Settings": "YouTube 爬取设置"
+	"Youtube Loader Settings": "YouTube 爬取设置",
+	"Account Activation Pending": "账号待激活",
+	"Contact Admin for WebUI Access": "请联系管理员以获取访问权限",
+	"Your account status is currently pending activation.": "您的账号当前状态为待激活。",
+	"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel.": "请联系管理员以访问。管理员可以在后台管理面板中管理用户状态。",
+	"Admin": "管理员联系方式"
 }