faker
faker copied to clipboard
<?>: split download size in half
EXPERIMENTAL
What is this?:
- All TS files in
src/localeswere converted into.jsonfiles - These are then bundled together as
src/locales/<locale>.jsonfile to require/import them (for at-dev time) - They are copied into
dist/locales/<locale>.jsonand are required/imported by cjs and esm from same source (for at-bundled time)
Open TODOs:
- fix tests
- manage generated docs
- fix bugs (specially locale
arandur)
Later?
- write a locale validator
- write a locale analyser to get how many % is missing for a locale
To review this PR, I tried as best as I could to separate all commits
Just out of the interest: what's the benefit of having locales as json vs ts?
Just out of the interest: what's the benefit of having locales as json vs ts?
Most important one: splitting the package size into HALF!
Second important one: having simpler files to manage like reducing all the boiler plate around the real content and making it somewhat simpler for a contributor to contribute
Closing these experiments for now
@Shinigami92 Do you still need the branch? If not, please delete it.
Commit-ID: 4203c3d8dfea49f7bb414a7e2ed68d9681aac71d
Yes, please do not delete them right now so we have a copy and look into it if needed I just wanted to clean the PR section as we would need to rewrite them anyway as they got to stale