# simulate_format

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-protranslate-studio/function-simulate_format/

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

```rust
fn simulate_format(text: &str, format: ferroui_protranslate_formats::TranslationFileFormat, culture: &ferroui_protranslate_core::Culture, values: &FormatPreviewValues) -> Result<String, crate::StudioError>
```

Composite messages execute the real formatter. Other syntaxes are deliberate
editor simulations using supplied sample values, not target runtime engines.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/format_helper.rs#L669)

## Availability

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