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_
auto_ with_ normalization - Auto-infer formats from paths and convert, with optional placeholder normalization. Auto-infer formats and convert with optional placeholder normalization.
- convert_
resources_ to_ format - Convert a vector of resources to a specific output format.
- convert_
with_ normalization - Convert like
convert, with an option to normalize placeholders before writing. - infer_
format_ from_ extension - Infers a
FormatTypefrom a file path’s extension. - infer_
format_ from_ path - Infers a
FormatTypefrom 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.