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 4f41357953
commit bf34552321
8 changed files with 13 additions and 148 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[]) {