Skip to content

Commit aa519c6

Browse files
committed
update locales
1 parent a2a1099 commit aa519c6

3 files changed

Lines changed: 21 additions & 21 deletions

File tree

src/i18n/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
"form.config.title": "PawSQL Setup",
5151
"form.config.email.label": "PawSQL Account",
5252
"form.config.password.label": "Password",
53-
"form.config.backendUrl.label": "PawSQL Engine Address",
53+
"form.config.backendUrl.label": "PawSQL Server Address",
5454
"form.config.frontendUrl.label": "PawSQL Website",
55-
"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 ",
55+
"form.config.description": "PawSQL Client enables developers to access core capabilities of the PawSQL directly within VSCode enviroment. PawSQL provides sophisticated SQL optimization features including smart index recommendations and query rewrites. More about PawSQL's capabilities, please visit ",
5656
"form.config.documentation.link": "docs.pawsql.com",
5757
"form.config.save": "Save",
5858
"workspaces.isLoading": "Loading Workspaces",

src/i18n/zh-cn.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
"form.config.title": "PawSQL 配置",
5151
"form.config.email.label": "PawSQL 账号",
5252
"form.config.password.label": "密码",
53-
"form.config.backendUrl.label": "PawSQL 引擎地址",
53+
"form.config.backendUrl.label": "PawSQL 服务器",
5454
"form.config.frontendUrl.label": "PawSQL 前端地址",
55-
"form.config.description": "PawSQL Client让开发者能够在VS Code开发环境中直接使用PawSQL优化引擎的强大功能,包括智能索引推荐、查询重写建议、自动化性能验证等。想要了解更详细的PawSQL的SQL优化能力,请参考",
55+
"form.config.description": "PawSQL Client让开发者能够在VS Code开发环境中直接使用PawSQL优化引擎的强大功能,包括智能索引推荐、查询重写建议、自动化性能验证等。想要了解更多关于PawSQL的优化能力,请参考",
5656
"form.config.documentation.link": "PawSQL官方文档",
5757
"form.config.save": "保存",
5858
"workspaces.isLoading": "工作空间列表加载中...",

src/webview/components/ConfigForm.tsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const ConfigForm: React.FC<ConfigFormProps> = ({
105105
variant="body1"
106106
align="center"
107107
color="textSecondary"
108-
sx={{ maxWidth: "460px" }}
108+
sx={{ maxWidth: "560px" }}
109109
>
110110
<FormattedMessage id="form.config.description" />{" "}
111111
<a
@@ -120,60 +120,60 @@ const ConfigForm: React.FC<ConfigFormProps> = ({
120120
</a>
121121
</Typography>
122122
</div>
123-
124-
<form onSubmit={handleSubmit}>
125-
<TextField
123+
<TextField
126124
fullWidth
127-
name="email"
128-
label={formatMessage({ id: "form.config.email.label" })}
125+
name="backendUrl"
126+
label={formatMessage({ id: "form.config.backendUrl.label" })}
129127
variant="outlined"
130128
margin="normal"
131-
value={formState.email}
129+
value={formState.backendUrl}
132130
onChange={handleInputChange}
133131
InputProps={{
134132
startAdornment: (
135133
<InputAdornment position="start">
136-
<PersonIcon sx={{ color: "#666" }} />
134+
<PublicIcon sx={{ color: "#666" }} />
137135
</InputAdornment>
138136
),
139137
}}
140138
sx={{ mb: 2 }}
141139
/>
140+
<form onSubmit={handleSubmit}>
142141
<TextField
143142
fullWidth
144-
name="password"
145-
type="password"
146-
label={formatMessage({ id: "form.config.password.label" })}
143+
name="email"
144+
label={formatMessage({ id: "form.config.email.label" })}
147145
variant="outlined"
148146
margin="normal"
149-
value={formState.password}
147+
value={formState.email}
150148
onChange={handleInputChange}
151149
InputProps={{
152150
startAdornment: (
153151
<InputAdornment position="start">
154-
<LockIcon sx={{ color: "#666" }} />
152+
<PersonIcon sx={{ color: "#666" }} />
155153
</InputAdornment>
156154
),
157155
}}
158156
sx={{ mb: 2 }}
159157
/>
160158
<TextField
161159
fullWidth
162-
name="backendUrl"
163-
label={formatMessage({ id: "form.config.backendUrl.label" })}
160+
name="password"
161+
type="password"
162+
label={formatMessage({ id: "form.config.password.label" })}
164163
variant="outlined"
165164
margin="normal"
166-
value={formState.backendUrl}
165+
value={formState.password}
167166
onChange={handleInputChange}
168167
InputProps={{
169168
startAdornment: (
170169
<InputAdornment position="start">
171-
<PublicIcon sx={{ color: "#666" }} />
170+
<LockIcon sx={{ color: "#666" }} />
172171
</InputAdornment>
173172
),
174173
}}
175174
sx={{ mb: 2 }}
176175
/>
176+
177177
<Button
178178
type="submit"
179179
variant="contained"

0 commit comments

Comments
 (0)