Giving locale files better names in built output

This commit is contained in:
Jeff Avallone 2019-01-11 21:02:07 -05:00
parent 50200ae72f
commit 0606325d6d

View File

@ -41,7 +41,10 @@ i18n
parse: data => data, parse: data => data,
ajax: async (lng, options, callback) => { ajax: async (lng, options, callback) => {
try { 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' }); callback(locale, { status: '200' });
} }