# SetLocaleEnabled(IAssetProvider, Locale, bool)

> Adds or removes a locale's tables across the provider's collections when the locale is toggled.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Localization.Editor](/engine/6000.7/script-reference/unity/localization/editor.md)
* **Assembly:** UnityEditor

```csharp
public void SetLocaleEnabled(IAssetProvider provider, Locale locale, bool enabled)
```

### Parameters

**** (\[IAssetProvider]\(/engine/6000.7/script-reference/unity/localization/providers/iassetprovider)): The provider instance from the settings chain.**** (\[Locale]\(/engine/6000.7/script-reference/unity/localization/locale)): The locale being toggled.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether the locale is now enabled.
