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,
|
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' });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user