i18next-json-sync icon indicating copy to clipboard operation
i18next-json-sync copied to clipboard

Config file support

Open alexis-exaud opened this issue 2 years ago • 0 comments

Instead of having to run sync-i18n --files '**/locales/*.json' --primary en --languages es fr ja zh ko --space 2

It would be nice to be able to run sync-i18n i18next-json-sync.config.js

Where i18next-json-sync.config.js would be:

module.exports = {
  files: '**/locales/*.json',
  primary: 'en',
  createResources: ["en", "fr", "ja", "zh", "ko"],
  space: 2
}

alexis-exaud avatar Oct 12 '23 10:10 alexis-exaud