Translations
This module allows you to manage translations directly inside Directus.
Adding translations
- Navigate to Settings > Data Model >
configuration_translations_translations
. - (Optional) If you wish to add new group (Visual only) create new Detail Group field.
- Create new Input field type String with key being translation key.
INFO
On the Frontend your keys will be changed to JSON structure. Each _
will be changed to .
so that key errorPageTranslations_404_title
will be accessible via errorPageTranslations.404.title
.
- Navigate to Content > Configuration > Translations
- Find your key and add translation. Remember to add it to every language.
- Clear translations cache using flows on right side.
- That's it 🎉.
Editing translations
- Navigate to Content > Configuration > Translations
- Find key that you would like to edit
- Edit text
- Clear translations cache using flows on right side.
- That's it 🎉.
Remove translations
- Navigate to Settings > Data Model >
configuration_translations_translations
. - Remove key that you no longer need.
- (Optional) Remove empty Detail Group
- Clear translations cache using flows on right side.
- That's it 🎉.