Skip to main content

Crate ferroui_protranslate_formats

Crate ferroui_protranslate_formats 

Source
Expand description

Loss-aware translation catalog conversion, independent of any UI framework.

Ported from the MIT-licensed ProTranslate.Formats library. Runtime translation lookup belongs to ferroui-protranslate-core; this crate is optional tooling. Parsers report malformed input as diagnostics rather than panicking. Exports are deterministic and report metadata or cultures that cannot be represented.

Structs§

TranslationCatalog
An ordered collection of normalized translations and its source language.
TranslationCatalogConverter
Stateless conversion entry points matching the source library’s organization.
TranslationCatalogEntry
A normalized translation. Plurals use key.category and retain the category separately.
TranslationExportResult
Exported text plus diagnostics describing information the target format cannot retain.
TranslationFormatDiagnostic
TranslationFormatOptions
TranslationFormatResult

Enums§

TranslationFileFormat
A format supported by the catalog conversion layer.
TranslationFormatDiagnosticSeverity

Functions§

detect_format
Detect by file name. XLIFF version is read from its root during import.
export
import

Type Aliases§

Severity