From 9daea8a087e92bc3dfc447716598b8859db44c46 Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 22 Apr 2025 17:10:49 +0800 Subject: [PATCH] Add Supported Languages section to localization.md and update link in language-management.md --- docs/en/framework/fundamentals/localization.md | 11 +++++++++++ docs/en/modules/language-management.md | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/en/framework/fundamentals/localization.md b/docs/en/framework/fundamentals/localization.md index 61118fd742..6e8a3f678a 100644 --- a/docs/en/framework/fundamentals/localization.md +++ b/docs/en/framework/fundamentals/localization.md @@ -248,6 +248,17 @@ namespace MyProject The `L` property is also available for some other base classes like `AbpController` and `AbpPageModel`. +## Supported Languages + +You can configure the `AbpLocalizationOptions`'s `Languages` property to add the languages supported by the application. The template already sets common languages, but you can add new languages as shown below: + +```csharp +Configure(options => +{ + options.Languages.Add(new LanguageInfo("uz", "uz", "Uzbek")); +}); +``` + ## The Client Side See the following documents to learn how to reuse the same localization texts in the JavaScript side; diff --git a/docs/en/modules/language-management.md b/docs/en/modules/language-management.md index 975889b274..3bce0d46b0 100644 --- a/docs/en/modules/language-management.md +++ b/docs/en/modules/language-management.md @@ -62,7 +62,7 @@ This module adds some initial data (see [the data seed system](../framework/infr * Creates language records configured using `AbpLocalizationOptions`. -If you want to change the seeded language list, see the [Localization](../framework/fundamentals/localization.md) document. +If you want to change the seeded language list, see the [Localization](../framework/fundamentals/localization.md#Supported-Languages) document. ## Internals