---
title: Add a custom language
slug: cms-13/docs/add-a-custom-language
docTags: 
createdAt: 2026-07-30T20:22:09.287Z
---

Add custom language and locale combinations to CMS to support languages unavailable on the host operating system.

CMS reads available languages from the host operating system. Available languages vary between machines, which limits the default options.

Create and enable custom languages programmatically, such as `en-SE` for English in a Swedish market.

The following code adds a custom language:

```csharp
ILanguageBranchRepository _repository; // Resolved via dependency injection  

_repository.Save(new LanguageBranch(new CultureInfo("xx-YY"))
{  
    Name = "My custom language",  
    URLSegment = "xx-yy",  
    Enabled = true  
});
```
