Skip to content

Commit 584b9f2

Browse files
committed
update locales
1 parent 77b09c7 commit 584b9f2

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

src/i18n/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
"webview.settings.save.config.success": "PawSQL Setup Completed",
4949
"webview.settings.save.config.failed": "PawSQL Setup Failded",
5050
"form.config.title": "PawSQL Setup",
51-
"form.config.email.label": "PawSQL Email",
51+
"form.config.email.label": "PawSQL Account",
5252
"form.config.password.label": "Password",
53-
"form.config.backendUrl.label": "PawSQL Engine",
53+
"form.config.backendUrl.label": "PawSQL Engine Address",
5454
"form.config.frontendUrl.label": "PawSQL Website",
5555
"form.config.description": "PawSQL Client enables developers to access core capabilities of the PawSQL directly within their VS Code development environment. PawSQL provides sophisticated SQL optimization features including smart index recommendations and query rewriting suggestions. More about PawSQL's capabilities, please visit ",
5656
"form.config.documentation.link": "docs.pawsql.com",

src/i18n/zh-cn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"webview.settings.save.config.success": "保存成功",
4949
"webview.settings.save.config.failed": "保存配置失败",
5050
"form.config.title": "PawSQL 配置",
51-
"form.config.email.label": "PawSQL注册邮箱",
51+
"form.config.email.label": "PawSQL 账号",
5252
"form.config.password.label": "密码",
5353
"form.config.backendUrl.label": "PawSQL 引擎地址",
5454
"form.config.frontendUrl.label": "PawSQL 前端地址",

src/webview/components/ConfigForm.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -141,53 +141,53 @@ const ConfigForm: React.FC<ConfigFormProps> = ({
141141
</div>
142142

143143
<form onSubmit={handleSubmit}>
144-
<TextField
144+
<TextField
145145
fullWidth
146-
name="email"
147-
label={formatMessage({ id: "form.config.email.label" })}
146+
name="backendUrl"
147+
label={formatMessage({ id: "form.config.backendUrl.label" })}
148148
variant="outlined"
149149
margin="normal"
150-
value={formState.email}
150+
value={formState.backendUrl}
151151
onChange={handleInputChange}
152152
InputProps={{
153153
startAdornment: (
154154
<InputAdornment position="start">
155-
<PersonIcon sx={{ color: "#666" }} />
155+
<PublicIcon sx={{ color: "#666" }} />
156156
</InputAdornment>
157157
),
158158
}}
159159
sx={{ mb: 2 }}
160160
/>
161161
<TextField
162162
fullWidth
163-
name="password"
164-
type="password"
165-
label={formatMessage({ id: "form.config.password.label" })}
163+
name="email"
164+
label={formatMessage({ id: "form.config.email.label" })}
166165
variant="outlined"
167166
margin="normal"
168-
value={formState.password}
167+
value={formState.email}
169168
onChange={handleInputChange}
170169
InputProps={{
171170
startAdornment: (
172171
<InputAdornment position="start">
173-
<LockIcon sx={{ color: "#666" }} />
172+
<PersonIcon sx={{ color: "#666" }} />
174173
</InputAdornment>
175174
),
176175
}}
177176
sx={{ mb: 2 }}
178177
/>
179178
<TextField
180179
fullWidth
181-
name="backendUrl"
182-
label={formatMessage({ id: "form.config.backendUrl.label" })}
180+
name="password"
181+
type="password"
182+
label={formatMessage({ id: "form.config.password.label" })}
183183
variant="outlined"
184184
margin="normal"
185-
value={formState.backendUrl}
185+
value={formState.password}
186186
onChange={handleInputChange}
187187
InputProps={{
188188
startAdornment: (
189189
<InputAdornment position="start">
190-
<PublicIcon sx={{ color: "#666" }} />
190+
<LockIcon sx={{ color: "#666" }} />
191191
</InputAdornment>
192192
),
193193
}}

0 commit comments

Comments
 (0)