diff --git a/src/components/SettingModal.tsx b/src/components/SettingModal.tsx
index 6e701be..df10590 100644
--- a/src/components/SettingModal.tsx
+++ b/src/components/SettingModal.tsx
@@ -17,7 +17,7 @@ const SettingModal = (props: Props) => {
return (
-
Setting
+ {t("setting.self")}
@@ -34,19 +34,20 @@ const SettingModal = (props: Props) => {
+
{t("setting.basic.self")}
- Language
+ {t("setting.basic.language")}
-
Danger Zone
+
{t("setting.data.self")}
- Clear all data
+ {t("setting.data.clear-all-data")}
diff --git a/src/components/kit/Select.tsx b/src/components/kit/Select.tsx
index 7ce8a86..5eaa28c 100644
--- a/src/components/kit/Select.tsx
+++ b/src/components/kit/Select.tsx
@@ -18,10 +18,10 @@ const Select = (props: Props) => {
return (
-
+
-
-
+
+
@@ -34,7 +34,7 @@ const Select = (props: Props) => {
>
- {placeholder && {placeholder}}
+ {placeholder && {placeholder}}
{itemList.map((item) => (
{item.label}
@@ -50,15 +50,17 @@ const Select = (props: Props) => {
interface SelectItemProps {
value: string;
+ children: ReactNode;
disabled?: boolean;
- children?: ReactNode;
+ className?: string;
}
-export type Ref = HTMLDivElement;
-const SelectItem = forwardRef[(({ children, ...props }, forwardedRef) => {
+const SelectItem = forwardRef(({ children, className, ...props }, forwardedRef) => {
return (
diff --git a/src/locales/en.json b/src/locales/en.json
index b58e5d9..8feb745 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -17,7 +17,7 @@
"connection": {
"self": "Connection",
"new": "Create Connection",
- "select-database": "Select your database:"
+ "select-database": "Select your database"
},
"execution": {
"title": "Execute query",
@@ -30,6 +30,20 @@
"editor": {
"placeholder": "Enter your question here..."
},
+ "setting": {
+ "self": "Setting",
+ "basic": {
+ "self": "Basic",
+ "language": "Language"
+ },
+ "openai-api-configuration": {
+ "self": "OpenAI API configuration"
+ },
+ "data": {
+ "self": "Data",
+ "clear-all-data": "Clear all data"
+ }
+ },
"social": {
"join-discord-channel": "Join Discord Channel",
"join-wechat-group": "Join WeChat Group"
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 75b0f1c..7688654 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -17,7 +17,7 @@
"connection": {
"self": "连接",
"new": "创建连接",
- "select-database": "选择您的数据库:"
+ "select-database": "选择数据库"
},
"execution": {
"title": "执行查询",
@@ -30,6 +30,20 @@
"editor": {
"placeholder": "在此输入您的问题..."
},
+ "setting": {
+ "self": "设置",
+ "basic": {
+ "self": "基础",
+ "language": "语言"
+ },
+ "openai-api-configuration": {
+ "self": "OpenAI API 配置"
+ },
+ "data": {
+ "self": "数据",
+ "clear-all-data": "清除所有数据"
+ }
+ },
"social": {
"join-discord-channel": "加入 Discord 频道",
"join-wechat-group": "加入微信群"
]