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

Automatic English locale generation #7

Closed
wants to merge 5 commits into from
Closed

Automatic English locale generation #7

wants to merge 5 commits into from

Conversation

misode
Copy link
Member

@misode misode commented May 23, 2022

Closes #6

Features

Adds a script which can be run with npm run build:locales. This scans all mcdoc files and writes to files: /locales/keys/en.json and /locales/docs/en.json.

Tasks

  • Use Spyglass to parse all .mcdoc files
  • Process the ASTs to list all keys and all doc comments
  • Transform keys to human readable strings
  • Create GitHub workflow to run the script and commit on push to main
  • Tested the workflow in private repo

Future work

  • Allow overwriting keys English locale
  • Detect field renames by comparing the previous locale

Copy link
Member

@MulverineX MulverineX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once the GH:A is running this should be good to go 👍

@MulverineX MulverineX closed this May 18, 2024
@MulverineX
Copy link
Member

Superseded by mcdoc-cli

@MulverineX MulverineX deleted the locales branch May 18, 2024 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setup & port internationalization
2 participants