Skip to content

Minimize keys #502

@mitar

Description

@mitar

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

  • Read the Contributing Guidelines.
  • Read the README
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions