Abp.SettingUi
Abp.SettingUi copied to clipboard
Localizable strings for setting groups
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?
Any comment?
cc @wakuflair
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"
}
}