Skip to content

Commit

Permalink
chore: palette locale
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchengjie committed May 13, 2024
1 parent 8d510cd commit fb518b6
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/setting/mods/theme-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? ""}
Expand All @@ -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"
Expand Down
11 changes: 11 additions & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 11 additions & 0 deletions src/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "Отмена",
Expand Down
11 changes: 11 additions & 0 deletions src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "取消",
Expand Down

0 comments on commit fb518b6

Please sign in to comment.