UNPKG

create-vitnode-app

Version:

Create a new VitNode app in seconds.

14 lines (11 loc) 408 B
import { getRequestConfig } from 'next-intl/server'; import { i18nConfigVitNode } from 'vitnode-frontend/i18n'; export default getRequestConfig(async ({ requestLocale }) => { const config = await i18nConfigVitNode({ pathsToMessagesFromPlugins: async ({ plugin, locale }) => { return await import(`./plugins/${plugin}/langs/${locale}.json`); }, requestLocale, }); return config; });