From c1177880c87466db1ae2101d4513a4c06fb5e8b0 Mon Sep 17 00:00:00 2001 From: UUBulb <35923940+uubulb@users.noreply.github.com> Date: Sat, 14 Dec 2024 17:17:53 +0800 Subject: [PATCH] fix: language code conversion (#53) --- .github/workflows/auto-format-commit.yml | 1 + src/components/cron.tsx | 22 ++++++++++++++++++++++ src/components/server.tsx | 2 +- src/locales/en/translation.json | 4 +++- src/locales/it/translation.json | 4 +++- src/locales/zh-CN/translation.json | 4 +++- src/locales/zh-TW/translation.json | 4 +++- src/routes/server.tsx | 2 +- src/routes/settings.tsx | 1 + 9 files changed, 38 insertions(+), 6 deletions(-) diff --git a/.github/workflows/auto-format-commit.yml b/.github/workflows/auto-format-commit.yml index 59a3688..f9a68a5 100644 --- a/.github/workflows/auto-format-commit.yml +++ b/.github/workflows/auto-format-commit.yml @@ -6,6 +6,7 @@ on: jobs: auto-fix: + if: github.actor != 'weblate' runs-on: ubuntu-latest steps: - name: Checkout code diff --git a/src/components/cron.tsx b/src/components/cron.tsx index 151c244..ee03f5f 100644 --- a/src/components/cron.tsx +++ b/src/components/cron.tsx @@ -1,5 +1,6 @@ import { createCron, updateCron } from "@/api/cron" import { Button } from "@/components/ui/button" +import { Checkbox } from "@/components/ui/checkbox" import { Dialog, DialogClose, @@ -19,6 +20,7 @@ import { FormMessage, } from "@/components/ui/form" import { Input } from "@/components/ui/input" +import { Label } from "@/components/ui/label" import { ScrollArea } from "@/components/ui/scroll-area" import { Select, @@ -250,6 +252,26 @@ export const CronCard: React.FC = ({ data, mutate }) => { )} /> + ( + + +
+ + +
+
+ +
+ )} + />