# set_current_locale

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/utilities/function-set_current_locale/

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

```rust
fn set_current_locale(locale: icu_locale_core::Locale)
```

Sets the locale of the current thread. The thread formats with the culture of the
locale from now on (`CultureInfo::current_formatting`); conventions attached to the
culture it formatted with before are dropped.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/current_locale.rs#L49)

## Availability

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