Export list of locales available, and a function to require an Array of locales
See original GitHub issueCan you please export the list of locales available? This would be a much better approach than having to manually write it out or programmatically use fs.readdirSync to get the full list. It would also be nice to have an option to load all locales (require them all, or a list passed) at once.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Is there a way to get the list of available locales in PHP?
The solution based on ResourceBundle::getLocales(''); will get you locales. You then need to map them to language codes. But even after that the...
Read more >Localization
List of user's locales, returned as an array of objects of type Locale . Guaranteed to contain at least 1 element. These are...
Read more >The Ultimate Guide to JavaScript Localization
Kick-start your JavaScript localization and use different i18n JavaScript code examples to make your app ready for international users.
Read more >grunt-locales
Update, build, import and export locales using grunt. ... files as well as localize method calls in JS files and collects the parsed...
Read more >Localizing Your Next.js App
locales. A list of all locales supported by your app. It is an array of strings . defaultLocale. The locale of your main...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

how to require them all?
we have one now https://unpkg.com/dayjs/locale.json