onedrive/i18next-parser.config.js

19 lines
528 B
JavaScript
Raw Normal View History

const path = require('path')
const { i18n, localePath } = require('./next-i18next.config')
module.exports = {
createOldCatalogs: false,
defaultNamespace: 'common',
defaultValue: (lng, _ns, key) => (lng === i18n.defaultLocale ? key : ''),
keySeparator: false,
namespaceSeparator: false,
pluralSeparator: '——',
2022-02-06 12:09:59 +00:00
contextSeparator: '——',
lineEnding: 'lf',
locales: i18n.locales,
output: path.join(localePath, '$LOCALE/$NAMESPACE.json'),
input: ['**/*.{ts,tsx}', '!**/node_modules/**'],
sort: true
}