Skip to content

Commit c7ab6c3

Browse files
committed
fix: Fix private TocService.load method usage in translate
1 parent 77632ec commit c7ab6c3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/commands/translate/run.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ export class Run extends BaseRun<CommonRunConfig> {
4141
await this.markdown.init();
4242

4343
if (isMainThread) {
44-
const tocs = await this.glob('**/toc.yaml', {
44+
const paths = await this.glob('**/toc.yaml', {
4545
cwd: this.input,
4646
});
4747

48-
for (const toc of tocs) {
49-
await this.toc.load(toc);
48+
await this.toc.init(paths);
49+
50+
for (const toc of paths) {
5051
this.tocYamlList.add(toc);
5152
}
5253
}

0 commit comments

Comments
 (0)