pub fn discover_crates(root_dir: &Path) -> Result<Vec<CrateInfo>, CliError>Expand description
Discovers all crates in a directory that use es-fluent.
This function will search for Cargo.toml files in the given directory and
its subdirectories. If a Cargo.toml file is found, it will check for an
i18n.toml file in the same directory. If both files are found, the crate
will be added to the list of discovered crates.