Skip to content

Commit

Permalink
Configure hbs lexer for i18nParse gulp task (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Mar 17, 2022
1 parent 8408b98 commit 54e4d43
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,13 @@ export function i18nParse() {
return src(`${sourceDir}/**`)
.pipe(new i18nextParser({
locales: ['en', 'fr'],
output: `${i18nDir}/$LOCALE/$NAMESPACE.json`
output: `${i18nDir}/$LOCALE/$NAMESPACE.json`,
lexers: {
hbs: [{
lexer: 'HandlebarsLexer',
functions: ['i18n'],
}],
},
}))
.pipe(dest('.'));
}
Expand Down

0 comments on commit 54e4d43

Please sign in to comment.