Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localizable strings for setting groups #81

Open
rcalv002 opened this issue May 10, 2022 · 3 comments
Open

Localizable strings for setting groups #81

rcalv002 opened this issue May 10, 2022 · 3 comments

Comments

@rcalv002
Copy link

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
Copy link
Author

Any comment?

@gdlcf88
Copy link
Member

gdlcf88 commented Jun 1, 2022

cc @wakuflair

@wakuflair
Copy link
Member

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"
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants