fix: new ts version build error

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2021-03-27 11:35:54 +08:00
parent 5c90ac3b1f
commit 1bdb324fc4
9 changed files with 17 additions and 149 deletions

View File

@@ -50,7 +50,7 @@ export class Translate {
readYamlFile(dir: string, name: string) {
let langFile = this.concat(dir, 'languages', name + '.yml')
return this.exists(langFile) && yaml.safeLoad(base.read(langFile))
return this.exists(langFile) && yaml.load(base.read(langFile))
}
concat(...args: string[]) {