directus-extension-auto-translation v10.11.8
This project is discontinued. We are not able to maintain this project anymore, as we are integrating it directly into our software. If you want to take over this project, please contact us.
About
This extension automatically translates Directus collections translation fields. This will be achieved by DeepL integration.
With a free DeepL account you can translate 500.000 words per month free.
Requirements
- DeepL Auth-Key (free or pro)
Installation
- Backup your database!
- Installing via the npm Registry
- Dockerfile
RUN pnpm install directus-extension-auto-translation
- Dockerfile
- Disable saving API key into database.
- a)
- Add the
envVariable:AUTO_TRANSLATE_API_KEY_SAVING_PATHwhich holds a path - Since saving an API key in the database is never a good idea. This allows us, to save the Key into a File.
- This allows your customers to dynamically change the API key.
- setup:
- volumes:
- ./secrets:/directus/secrets
- env section:
AUTO_TRANSLATE_API_KEY_SAVING_PATH: "/directus/secrets/api-key-in-file.txt"
- volumes:
- Add the
- b)
- Add the
envVariable:AUTO_TRANSLATE_API_KEYwhich holds the api key - This does not allow dynamically changing the API key as in option a)
- Add the
Follow the instructions in your Directus App add the new created table (
auto_translation_settings)
Usage
This example shows how to use the extension for a collection wikis
- Add a
translationtype field to your collection - Directus automatically creates a
wikis_translationsandlanguagescollection - In this translation collection (
wikis_translations)- Add a
be_source_for_translationsfield (default:true)- This field is used to determine if the translation is the source of the translation
- Add a
let_be_translatedfield (default:true)- This field is used to determine if the record should be translated
- Add a
If you now create or update a record in the wikis collection with a translation it will be automatically translated.
Contributors
The FireboltCasters
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago