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

TranslatorService #1235

Open
srosset81 opened this issue Feb 23, 2024 · 0 comments
Open

TranslatorService #1235

srosset81 opened this issue Feb 23, 2024 · 0 comments

Comments

@srosset81
Copy link
Contributor

srosset81 commented Feb 23, 2024

Service which looks for new string-type literals which are added to the triple store (listening to Moleculer events), and automatically translate them to chosen languages, using DeepL API or Google Cloud Translation

Settings:

  • baseLocale: locale to translate from
  • translatedLocale: locales to translate to
  • exclude: predicates or classes to exclude from translation

Actions:

  • addBaseLocale: Add the baseLocale to all string-type literals
  • translateAll: Look for all string-type literals and translate them

Other tasks

  • Adapt whole SemApps code to adapt to locale (:warning: big task ?!)
  • Adapt data provider to filter by locale (could be passed as a meta, supported since React-Admin 4)
  • Adapt Archipelago to display data by language (don't activate edit function in non-base locale ?)
    • If a translation is incorrect, it could be fixed. But if the string in the base locale is updated, changes will be overwritten.

Idea

In the futur, we could provide a tool which could be notified, through ActivityPub, when an automatic translation has been added, and allow to correct it. Ideally, we should use RDF-star in order to mark if a translation has been approved or not... but this is another task altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant