# TranslationCatalogConverter

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-protranslate-formats/struct-translationcatalogconverter/

**struct** · [`ferroui-protranslate-formats`](/docs/0.5.0/api/ferroui-protranslate-formats/) · v0.5.0

```rust
struct TranslationCatalogConverter
```

Stateless conversion entry points matching the source library's organization.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Formats/lib.rs#L16)

## Members

- [`detect_format`](#function-detect_format)
- [`import`](#function-import)
- [`export`](#function-export)

<a id="function-detect_format"></a>

### detect_format

```rust
fn detect_format(path: &str) -> TranslationFileFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Formats/lib.rs#L19)

<a id="function-import"></a>

### import

```rust
fn import(content: &str, format: TranslationFileFormat, options: &TranslationFormatOptions, path: Option<&str>) -> TranslationFormatResult
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Formats/lib.rs#L22)

<a id="function-export"></a>

### export

```rust
fn export(catalog: &TranslationCatalog, format: TranslationFileFormat, options: &TranslationFormatOptions) -> TranslationExportResult
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Formats/lib.rs#L30)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
