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

A function that gives the available locales #430

Closed
Natchii59 opened this issue Jul 30, 2023 · 1 comment
Closed

A function that gives the available locales #430

Natchii59 opened this issue Jul 30, 2023 · 1 comment
Labels
enhancement New feature or request unconfirmed Needs triage.

Comments

@Natchii59
Copy link

Is your feature request related to a problem? Please describe.

No there is no problem. It's just that it's annoying to see the list of available locales rewritten each time.

Describe the solution you'd like

I would like us to be able to retrieve via a function the list of all available locales that we have put in the messages/locales folder.

Describe alternatives you've considered

Write each time an array of strings with the available locales.

@Natchii59 Natchii59 added enhancement New feature or request unconfirmed Needs triage. labels Jul 30, 2023
@amannn
Copy link
Owner

amannn commented Jul 31, 2023

You can already achieve this by importing the available locales from a shared module. The list of all locales is currently only known to the middleware, therefore we can't expose this e.g. via the provider anyway.

Hope this helps!

@amannn amannn closed this as completed Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

2 participants