Skip to content

[feature] Automate generation of client/test-translation.json from .po files #902

@pandafy

Description

@pandafy

Is your feature request related to a problem? Please describe.
The client/test-translation.json file currently requires manual updates to add or change translations for strings. This is repetitive work since the translations already exist in the corresponding .po files. If one misses updating test-translation.json file, then the snapshots created for tests only include the msgid. This creates inconsistency and increases maintenance overhead.

Describe the solution you'd like
A script or tool that can automatically generate or update client/test-translation.json by extracting translations directly from the .po files.

A possible solution could be to add this process to the yarn test command, so the file is populated automatically before tests are run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    To do (general)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions