File size: 528 Bytes
5db682b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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: 'β€”β€”',
  contextSeparator: 'β€”β€”',
  lineEnding: 'lf',
  locales: i18n.locales,
  output: path.join(localePath, '$LOCALE/$NAMESPACE.json'),
  input: ['**/*.{ts,tsx}', '!**/node_modules/**'],
  sort: true
}