diff --git a/src/i18n.js b/src/i18n.js index 7bb4e10..f658365 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -41,7 +41,10 @@ i18n parse: data => data, ajax: async (lng, options, callback) => { try { - const { default: locale } = await import(`locales/${ lng }.yaml`); + const { default: locale } = await import( + /* webpackInclude: /\.yaml$/ */ + /* webpackChunkName: "locale-[index]" */ + `locales/${ lng }.yaml`); callback(locale, { status: '200' }); }