Giving locale files better names in built output
This commit is contained in:
parent
50200ae72f
commit
0606325d6d
@ -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' });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user