Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create script to check translations have been provided #890

Closed
5 tasks
eleanorreem opened this issue May 6, 2024 · 2 comments
Closed
5 tasks

Create script to check translations have been provided #890

eleanorreem opened this issue May 6, 2024 · 2 comments
Assignees
Labels
complexity: advanced Time needed to do this ticket will be large e.g. 2-3+ days maintenance Maintenance / chore work state: approved Ready to go. Not blocked or pending.

Comments

@eleanorreem
Copy link
Contributor

Overview

As a dev, I get helpful warnings if I forgot to add a translation file or to paste translations in the relevant files.

Currently, when an english translation file is added to the /messages folder for a new page, the spanish / hindi equivalent could easily be missed. It would be great to run a script to check that all the files match up.

Action Items

  • Add a script which checks that our translation files are correct.
    This script needs to check that
  • for each enabled language that the messages .json files exist for every folder. i.e. shared/en.json, shared/hi.json etc.. all exist.
  • for each file, ensure there is a matching key value pair in every file.
  • if either of these is not true, print a warning mentioning, language and the key.
  • Add the script to the package json. It should be called something like "check:translations".
@eleanorreem eleanorreem added complexity: advanced Time needed to do this ticket will be large e.g. 2-3+ days maintenance Maintenance / chore work state: approved Ready to go. Not blocked or pending. labels May 6, 2024
@anmol-fzr
Copy link
Contributor

@eleanorreem
Hi!, Could you please assign me an issue to work on for the bloom-frontend project ? I'm eager to contribute to the project and the society.

Copy link
Contributor

Thank you for your interest in contributing to Chayn! Please carefully read the CONTRIBUTING.md file and the README.md file for guidance. Let us know if you have any questions. Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: advanced Time needed to do this ticket will be large e.g. 2-3+ days maintenance Maintenance / chore work state: approved Ready to go. Not blocked or pending.
Projects
None yet
Development

No branches or pull requests

3 participants