Skip to content

Add rules translation to other languages #7

@ivancea

Description

@ivancea

It could use existing translations, or it could be an automatic translation

Maybe, use the translate service client: https://cloud.google.com/translate/docs/apis
Or the ML offline one: https://developers.google.com/ml-kit/language/translation?hl=en

Also, it may be translated and uploaded to GitHub as a JSON, so that it can be downloaded by users. WOuld require manual translation, or a GitHub action to do so, to translate everything everytime a new rule is added.
Would require:

  • A global file to use as a translations registry. It would be a Rule set -> Available languages map
  • For each rule+language, a file with the full translation, deserializable and convertible to the Rule object
  • A script to translate new rules to a set of languages. Would be run by a GitHub action. It would:
    1. Detect changed or new rules
    2. Parse them
    3. Translate them to all the target languages
    4. Make a PR with the updated files
  • Add the UI to choose between available languages (To be downloaded from GitHub, maybe to a cache)
  • Optionally, add something to fetch for language updates (Could add checksums per translation to the registry file)

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featureNew feature, not an enhacement of another featureuser request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions