Skip to content

Commit

Permalink
fix(lazy): allow extensions yml/yaml when loading lazy locales
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl committed Feb 24, 2021
1 parent 08c48dc commit 01f92ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function loadLanguageAsync (context, locale) {
try {
const langFileModule = await import(
/* webpackChunkName: "lang-[request]" */
/* webpackInclude: /\.(js|ts|json)$/ */
/* webpackInclude: /\.(js|ts|json|ya?ml)$/ */
`~/<%= options.langDir %>${file}`
)
const getter = langFileModule.default || langFileModule
Expand Down

0 comments on commit 01f92ae

Please sign in to comment.