dongchengjie 1 рік тому
батько
коміт
fb518b6218

+ 10 - 10
src/components/setting/mods/theme-viewer.tsx

@@ -87,24 +87,24 @@ export const ThemeViewer = forwardRef<DialogRef>((props, ref) => {
       onOk={onSave}
     >
       <List sx={{ pt: 0 }}>
-        {renderItem("Primary Color", "primary_color")}
+        {renderItem(t("Primary Color"), "primary_color")}
 
-        {renderItem("Secondary Color", "secondary_color")}
+        {renderItem(t("Secondary Color"), "secondary_color")}
 
-        {renderItem("Primary Text", "primary_text")}
+        {renderItem(t("Primary Text"), "primary_text")}
 
-        {renderItem("Secondary Text", "secondary_text")}
+        {renderItem(t("Secondary Text"), "secondary_text")}
 
-        {renderItem("Info Color", "info_color")}
+        {renderItem(t("Info Color"), "info_color")}
 
-        {renderItem("Error Color", "error_color")}
+        {renderItem(t("Warning Color"), "warning_color")}
 
-        {renderItem("Warning Color", "warning_color")}
+        {renderItem(t("Error Color"), "error_color")}
 
-        {renderItem("Success Color", "success_color")}
+        {renderItem(t("Success Color"), "success_color")}
 
         <Item>
-          <ListItemText primary="Font Family" />
+          <ListItemText primary={t("Font Family")} />
           <TextField
             {...textProps}
             value={theme.font_family ?? ""}
@@ -113,7 +113,7 @@ export const ThemeViewer = forwardRef<DialogRef>((props, ref) => {
           />
         </Item>
         <Item>
-          <ListItemText primary="CSS Injection" />
+          <ListItemText primary={t("CSS Injection")} />
           <Button
             startIcon={<Edit />}
             variant="outlined"

+ 11 - 0
src/locales/en.json

@@ -145,6 +145,17 @@
   "Restart": "Restart",
   "Upgrade": "Upgrade",
 
+  "Primary Color": "Primary Color",
+  "Secondary Color": "Secondary Color",
+  "Primary Text": "Primary Text",
+  "Secondary Text": "Secondary Text",
+  "Info Color": "Info Color",
+  "Warning Color": "Warning Color",
+  "Error Color": "Error Color",
+  "Success Color": "Success Color",
+  "Font Family": "Font Family",
+  "CSS Injection": "CSS Injection",
+
   "Back": "Back",
   "Save": "Save",
   "Cancel": "Cancel",

+ 11 - 0
src/locales/ru.json

@@ -145,6 +145,17 @@
   "Restart": "Перезапуск",
   "Upgrade": "Обновлять",
 
+  "Primary Color": "Основной цвет",
+  "Secondary Color": "Вторичный цвет",
+  "Primary Text Color": "Основной текст",
+  "Secondary Text Color": "Вторичный текст",
+  "Info Color": "Информационный цвет",
+  "Warning Color": "Цвет предупреждения",
+  "Error Color": "Цвет ошибки",
+  "Success Color": "Цвет успеха",
+  "Font Family": "Семейство шрифтов",
+  "CSS Injection": "Внедрение CSS",
+
   "Back": "Назад",
   "Save": "Сохранить",
   "Cancel": "Отмена",

+ 11 - 0
src/locales/zh.json

@@ -145,6 +145,17 @@
   "Restart": "重启内核",
   "Upgrade": "升级内核",
 
+  "Primary Color": "主要颜色",
+  "Secondary Color": "次要颜色",
+  "Primary Text": "文本主要颜色",
+  "Secondary Text": "文本次要颜色",
+  "Info Color": "信息颜色",
+  "Warning Color": "警告颜色",
+  "Error Color": "错误颜色",
+  "Success Color": "成功颜色",
+  "Font Family": "字体系列",
+  "CSS Injection": "CSS 注入",
+
   "Back": "返回",
   "Save": "保存",
   "Cancel": "取消",