-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove aliases and update i18n for schema
- Loading branch information
Showing
8 changed files
with
54 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
defaultLanguage: | ||
$description: Default output language, can be overridden by the -l option | ||
$value: | ||
- English | ||
- German | ||
- French | ||
- Japanese | ||
- Korean | ||
- Simplified Chinese | ||
defaultMode: | ||
$description: Default output mode | ||
$value: | ||
- Prefer to output image | ||
- Always output text | ||
threshold: Distance threshold for fuzzy search text commands |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Context } from 'koishi' | ||
|
||
export function apply(ctx: Context) { | ||
ctx.i18n.define('en', require('./en-US/macrodict.yml')) | ||
ctx.i18n.define('zh', require('./zh-CN/macrodict.yml')) | ||
ctx.i18n.define('zh-CN', require('./zh-CN/macrodict.yml')) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
defaultLanguage: | ||
$description: 默认输出语言,可被 -l 选项覆盖 | ||
$value: | ||
- 英文 | ||
- 德文 | ||
- 法文 | ||
- 日文 | ||
- 韩文 | ||
- 简体中文 | ||
defaultMode: | ||
$description: 默认输出模式 | ||
$value: | ||
- 优先输出图片 | ||
- 总是输出文本 | ||
threshold: 模糊搜索文本指令的距离阈值 |
File renamed without changes.