You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
getcryst.al/lib/trees.ts

15 lines
295 B
TypeScript

import { i18n } from "../next-i18next.config.js";
import { TreeItem } from "./tree";
const trees: {
[key: string]: TreeItem;
} = {};
for (const locale of i18n.locales) {
trees[locale] = await new TreeItem("root").walk(`_docs/${locale}/`);
trees[locale].sort();
}
export default trees;