Movatterモバイル変換


[0]ホーム

URL:


Dev GuideRecipesAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityOptimizely AcademySubmit a ticketLog InContent Management System
Dev Guide
All
Pages
Start typing to search…

Add a custom language

Describes how to add a custom language to CMS.

You can add a custom language with local combinations to CMS for your site.

Optimizely Content Management System (CMS) determines the available languages based on those installed on the host operating system. Available languages can present a problem because they vary between different machines.

To accommodate specific needs, you can programmatically create and enable custom languages in CMS, such asen-SE for English in a Swedish market to tailor language settings to your specific requirements.

The following code shows how to add a custom language.

ILanguageBranchRepository _repository // Resolved via dependency injection  _repository.Save(new LanguageBranch(new CultureInfo("xx-YY")  {     Name = "My custom language",     UrlSegment = "xx-yy",     Enabled = true  }));

Updated 10 days ago



[8]ページ先頭

©2009-2025 Movatter.jp