mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
713 B
23 lines
713 B
using Volo.Abp.Localization.Resources.AbpLocalization;
|
|
using Volo.Abp.Settings;
|
|
|
|
namespace Volo.Abp.Localization;
|
|
|
|
public class LocalizationSettingProvider : SettingDefinitionProvider
|
|
{
|
|
public override void Define(ISettingDefinitionContext context)
|
|
{
|
|
context.Add(
|
|
new SettingDefinition(LocalizationSettingNames.DefaultLanguage,
|
|
"en",
|
|
L("DisplayName:Abp.Localization.DefaultLanguage"),
|
|
L("Description:Abp.Localization.DefaultLanguage"),
|
|
isVisibleToClients: true)
|
|
);
|
|
}
|
|
|
|
private static LocalizableString L(string name)
|
|
{
|
|
return LocalizableString.Create<AbpLocalizationResource>(name);
|
|
}
|
|
}
|
|
|