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

Locale provider #2

Closed
1 task done
hypergonial opened this issue Dec 31, 2023 · 1 comment
Closed
1 task done

Locale provider #2

hypergonial opened this issue Dec 31, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@hypergonial
Copy link
Owner

Summary

Add the ability to attach a locale provider to the client which can be queried by commands for localizations.

Why is this needed?

It would provide a nicer interface for i18n.

Ideal implementation

Ideally a LocaleProvider or something similar would be provided to the client on initialization, and commands that are being added can then query the LocaleProvider to set their locale options. The user should also be able to query localization strings through the provider manually for creating localized responses.

Checklist

  • I have searched the issue tracker and have made sure it's not a duplicate. If it is a follow up of another issue, I have specified it.
@hypergonial hypergonial added the enhancement New feature or request label Dec 31, 2023
@hypergonial
Copy link
Owner Author

Implemented in 952e572

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

No branches or pull requests

1 participant