Abp.SettingUi icon indicating copy to clipboard operation
Abp.SettingUi copied to clipboard

Localizable strings for setting groups

Open rcalv002 opened this issue 2 years ago • 3 comments

Hello!

Currently the SettingDefinition takes localizable strings for our settings, however the .WithProperty method does not, so how do we get localized strings into our group headers for settings?

image

image

rcalv002 avatar May 10 '22 14:05 rcalv002

Any comment?

rcalv002 avatar May 31 '22 23:05 rcalv002

cc @wakuflair

gdlcf88 avatar Jun 01 '22 03:06 gdlcf88

You just pass the localization key to the WithProperty method:

.WithProperty(SettingUiConst.Group1, "Server")
.WithProperty(SettingUiConst.Group2, "Connection")

and provide translations in the JSON files:

{
    "culture": "en",
    "texts": {
        ...
        "Server": "Server",
        "Connection": "Connection"
    }
}

wakuflair avatar Jun 02 '22 05:06 wakuflair