loco-cli
loco-cli copied to clipboard
When setting the locales-dir as a param, it is ignored when already specified in the .locorc.json config file
If you have the localesDir set in your locorc.json file, and also set it via a CLI flag (-d, --locales-dir <path>), the localesDir from the config file takes precedency, while I would have expected the CLI flag.
As the CLI adds defaults eg: localesDir: ".", it makes more sense that the config file is the overwriting truth, no?
If we do want the CLI to overwrite the config file, we'd need to extract these defaults from cli.ts and add them in the options.ts. It's possible, but do we want to do that? @robrechtme