element-call/i18next-parser.config.js
Robin Townsend 90ef5505bb Apply Prettier to the entire project
This ensures that our tests will be formatted by Prettier, among other things.
2022-12-09 14:34:25 -05:00

22 lines
524 B
JavaScript

export default {
keySeparator: false,
namespaceSeparator: false,
contextSeparator: "|",
pluralSeparator: "|",
createOldCatalogs: false,
defaultNamespace: "app",
lexers: {
ts: [
{
lexer: "JavascriptLexer",
functions: ["t", "translatedError"],
functionsNamespace: ["useTranslation", "withTranslation"],
},
],
},
locales: ["en-GB"],
output: "public/locales/$LOCALE/$NAMESPACE.json",
input: ["src/**/*.{ts,tsx}"],
sort: true,
useKeysAsDefaultValue: true,
};