Skip to content

Hashing JSON files for i18n #2949

Closed
Closed
@TheTFo

Description

@TheTFo

Is this a bug report?

No

Im using i18next with react-18next, and loading my language files over http. Currently my tooling just drops the translation json files into the public directory for easy access. I'm thinking I now need to hash these, similar to the job and css file in the build. Is there a recommended way to about doing this?

My thought is to use a hashing npm package, and export the file names into my code through a module that checks the node environment to return the proper name.

Any thoughts on the best way do this in CRA?

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