-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move i18next-parser config to a separate file (#451)
In their infinite wisdom, the i18next-parser team decided to go ESM- only, which obviously doesn't work with a TS gulpfile that is still emulating ESM on top of CommonJS. Sigh.
- Loading branch information
1 parent
e63744b
commit 91ad84b
Showing
3 changed files
with
14 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import HbsI18nLexer from 'handlebars-i18next-parser'; | ||
|
||
const sourceDir = 'src'; | ||
const i18nDir = `${sourceDir}/i18n`; | ||
|
||
export default { | ||
input: [`${sourceDir}/**/*.{t,hb}s`, `!${sourceDir}/**/*-te{mplate,st}.ts`], | ||
output: `${i18nDir}/$LOCALE/$NAMESPACE.json`, | ||
locales: ['en', 'fr'], | ||
lexers: { | ||
hbs: [HbsI18nLexer], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters