paper-ai-release-24-07-21/dictionaries.js

9 lines
279 B
JavaScript
Raw Permalink Normal View History

2024-02-12 20:55:14 +08:00
import "server-only";
const dictionaries = {
en: () => import("./dictionaries/en.json").then((module) => module.default),
nl: () => import("./dictionaries/nl.json").then((module) => module.default),
};
export const getDictionary = async (locale) => dictionaries[locale]();