mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 12:03:25 -04:00
12 lines
322 B
TypeScript
12 lines
322 B
TypeScript
export default (module: string, componentName: string) => {
|
|
const config = useConfig();
|
|
|
|
return defineAsyncComponent(async () => {
|
|
try {
|
|
return await import(`~/locale/${config.locale}/${module}/${componentName}.vue`);
|
|
} catch (error) {
|
|
return () => {};
|
|
}
|
|
});
|
|
};
|