pub fn convert_auto<P: AsRef<Path>>(input: P, output: P) -> Result<(), Error>Expand description
Convert a localization file from one format to another, inferring formats from file extensions.
This function attempts to infer the input and output formats from their file extensions. Returns an error if either format cannot be inferred.
§Arguments
input- The input file path.output- The output file path.
§Errors
Returns an Error if the format cannot be inferred, or if conversion fails.
§Example
use langcodec::convert_auto;
convert_auto("Localizable.strings", "strings.xml")?;