bundle-tools
bundle-tools copied to clipboard
Minimize keys
Clear and concise description of the problem
Currently, JSON files contain human-centric, verbose and developer-friendly keys. This is great for development, but in production this is a lot of bytes.
Suggested solution
During bundling, those keys could be minimized into unique short key names. I think this could be done with simple find/replace based on names found in language JSON files, like if there is {"my":{"message": "x"}} tool could search for [\b$]t("my.message" string and replace it.
Alternative
Use cryptic and short key names during development itself.
Additional context
No response
Validations
- [x] Read the Contributing Guidelines.
- [x] Read the README
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.