Module converter

Module converter 

Source
Expand description

Format conversion utilities for langcodec.

This module provides functions for converting between different localization file formats, format inference, and utility functions for working with resources.

Functions§

convert
Convert a localization file from one format to another.
convert_auto
Convert a localization file from one format to another, inferring formats from file extensions.
convert_resources_to_format
Convert a vector of resources to a specific output format.
infer_format_from_extension
Infers a FormatType from a file path’s extension.
infer_format_from_path
Infers a FormatType from a file path, including language detection.
infer_language_from_path
Infers the language code from a file path based on its format and structure.
merge_resources
Merges multiple resources into a single resource with conflict resolution.
write_resources_to_file
Writes resources to a file based on their stored format metadata.