9 lines
279 B
JavaScript
9 lines
279 B
JavaScript
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]();
|