Skip to content

Commit

Permalink
Use frontend/src/i18n as the i18nParser output directory (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Mar 17, 2022
1 parent 164f7fb commit d59b9eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const sourceDir = `src`,
hbsGlobal = 'Handlebars',
i18nModuleTail = 'dist/umd/i18next',
i18nModule = `i18next/${i18nModuleTail}`,
i18nDir = `${sourceDir}/i18n`,
styleDir = `${sourceDir}/style`,
mainStylesheet = `${styleDir}/main.sass`,
styleSourceGlob = `${styleDir}/*.sass`,
Expand Down Expand Up @@ -292,10 +293,10 @@ function reportBundleError(errorObj) {
export function i18nParse() {
return src(sourceDir)
.pipe(new i18nextParser({
locales: ['en', 'fr'],
output: 'locales/$LOCALE/$NAMESPACE.json'
locales: ['en', 'fr'],
output: `${i18nDir}/$LOCALE/$NAMESPACE.json`
}))
.pipe(dest(`${sourceDir}/i18n`));
.pipe(dest('.'));
}

function jsBundle() {
Expand Down

0 comments on commit d59b9eb

Please sign in to comment.