中文显示修改

This commit is contained in:
xdragon 2024-09-05 15:27:27 +08:00
parent daa8c09a32
commit 8497f652bc
6 changed files with 8 additions and 8 deletions

View file

@ -91,7 +91,7 @@ export const App = ()=> {
<div className="inner-menu">
<span>
<Crown width={40} height={40}/>
<h5>Etherpad</h5>
<h5><Trans i18nKey="admin.page-title"/></h5>
</span>
<ul>
<li><NavLink to="/plugins"><Cable/><Trans i18nKey="admin_plugins"/></NavLink></li>

View file

@ -28,7 +28,7 @@ const LazyImportPlugin: BackendModule = {
try {
json = JSON.parse(await localeJSON.text())
} catch(e) {
callback(new Error("Error loading"), null);
callback(new Error("加载错误"), null);
}

View file

@ -21,13 +21,13 @@ export const SettingsPage = ()=>{
settingsSocket!.emit('saveSettings', settings!);
useStore.getState().setToastState({
open: true,
title: "Succesfully saved settings",
title: "保存设置成功",
success: true
})
} else {
useStore.getState().setToastState({
open: true,
title: "Error saving settings",
title: "保存设置出错",
success: false
})
}