Skip to content

Instantly share code, notes, and snippets.

@ianmartorell
Created May 19, 2020 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianmartorell/29693ea4716d92b884d579d5896be20d to your computer and use it in GitHub Desktop.
Save ianmartorell/29693ea4716d92b884d579d5896be20d to your computer and use it in GitHub Desktop.
module.exports = {
defaultNamespace: 'common',
useKeysAsDefaultValue: true,
locales: ['en', 'es'],
output: 'src/i18n/locales/$LOCALE/$NAMESPACE.json',
input: 'src/**/*.{js,ts,tsx}',
sort: true,
lexers: {
js: ['JsxLexer'],
ts: ['JavascriptLexer'],
jsx: ['JsxLexer'],
tsx: ['JsxLexer'],
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment