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

Configurable strings for prompt messages/keys #207

Closed
IbexPeak opened this issue Apr 4, 2022 · 3 comments · Fixed by #211
Closed

Configurable strings for prompt messages/keys #207

IbexPeak opened this issue Apr 4, 2022 · 3 comments · Fixed by #211
Labels
enhancement New feature or request

Comments

@IbexPeak
Copy link
Contributor

IbexPeak commented Apr 4, 2022

Hi shibayan,

it would be nice if the keys and the displayed messages for a prompt are configurable. So that the key "y/n" and the messages "yes"/"no" can be configured at the static Prompt class.

This allows us defining localizable inputs, as in Germany we usually use "J/N" and "Ja"/"Nein" without forking the repo as we do now.

Thanks!

@shibayan shibayan added the enhancement New feature or request label Apr 4, 2022
@diegosps
Copy link

diegosps commented Jun 3, 2022

Hi, shibayan!
I'm having trouble understanding how to localize my local application.
Is the only available way doing a PR with the complete resource.XX.resx to be added in the main project?
Or can I set an incomplete resource file at my project and somehow make sharprompt consume it for the entries that I set?

Thanks!

@IbexPeak
Copy link
Contributor Author

IbexPeak commented Aug 12, 2022

@shibayan Would be interesting for me too

@shibayan
Copy link
Owner

Localized resources can be merged after a brief review by me using machine translation if you create a PR.

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

Successfully merging a pull request may close this issue.

3 participants