Skip to content

Commit d66eed1

Browse files
committed
fix: prettier format code
1 parent 9aa26f4 commit d66eed1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/node/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export interface UserProvidedArgs extends UserProvidedCodeArgs {
8888
verbose?: boolean
8989
"app-name"?: string
9090
"welcome-text"?: string
91-
"lng"?: string
91+
lng?: string
9292
/* Positional arguments. */
9393
_?: string[]
9494
}
@@ -265,7 +265,7 @@ export const options: Options<Required<UserProvidedArgs>> = {
265265
`,
266266
deprecated: true,
267267
},
268-
"lng": {
268+
lng: {
269269
type: "string",
270270
description: `
271271
Language show on login page, more infomations to read up on

src/node/i18n/locales/zh-cn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
"LOGIN_RATE_LIMIT": "登录速率限制!",
1111
"MISS_PASSWORD": "缺少密码",
1212
"INCORRECT_PASSWORD": "密码不正确"
13-
}
13+
}

src/node/routes/login.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const getRoot = async (req: Request, error?: Error): Promise<string> => {
4343
return replaceTemplates(
4444
req,
4545
content
46-
.replace(/{{I18N_LOGIN_TITLE}}/g, i18n.t("LOGIN_TITLE", { app: appName}))
46+
.replace(/{{I18N_LOGIN_TITLE}}/g, i18n.t("LOGIN_TITLE", { app: appName }))
4747
.replace(/{{WELCOME_TEXT}}/g, welcomeText)
4848
.replace(/{{PASSWORD_MSG}}/g, passwordMsg)
4949
.replace(/{{I18N_LOGIN_BELOW}}/g, i18n.t("LOGIN_BELOW"))

test/unit/node/cli.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ describe("parser", () => {
132132
verbose: true,
133133
"app-name": "custom instance name",
134134
"welcome-text": "welcome to code",
135-
"lng": "zh-cn",
135+
lng: "zh-cn",
136136
version: true,
137137
"bind-addr": "192.169.0.1:8080",
138138
})

0 commit comments

Comments
 (0)