# Silverlight Localization

## Content



Localization for Silverlight applications is a bit different, as it has two extra steps.

1.  First, you should add the desired localized resource files (.resx) to your project’s Resources directory (Build Action: Embedded Resource). We provide the localized resource files for each ComponentOne assembly at **C:\\Program Files\\ComponentOne\\Silverlight Edition\\Help\\LocalizationResources.zip**.
2.  Second, you must unload your project and edit the < SupportedCultures> node in the **project.csproj** file.
    
    ```csharpPROJ
    <SupportedCultures>es,en</SupportedCultures>
    ```
    

The final step is the same in WPF. Change the application thread's culture.

### Visual Basic

```vbnet
' set culture to Spanish ("es")

Thread.CurrentThread.CurrentUICulture = New CultureInfo("es")
```

**csharp**

```csharp
// set culture to Spanish ("es")
Thread.CurrentThread.CurrentUICulture = new CultureInfo("es");
```

This information just focuses on localizing C1 controls. You will likely have other UI strings that need to be localized too. For more information about Silverlight localization from Microsoft, see [Localizing Silverlight-based Applications](http://msdn.microsoft.com/en-us/library/cc838238%28v=vs.95%29.aspx).

## See Also

[UI Automation Support](UIAutomationSupport.html)