benkeen / generatedata

A powerful, feature-rich, random test data generator.
https://generatedata.com
2.21k stars 611 forks source link

Refactor _env and typings to export locales from single source #804

Closed benkeen closed 1 year ago

benkeen commented 1 year ago

GDLocale needs to be manually updated every time we add a language. The new npm package version requires knowledge of all available locales.

Refactor _env.ts to separate the locales + export them separately, and have the GDLocale type generated automatically from array.