ride / web-i18n-inline
Inline translator
Installs: 630
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 12
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- ride/lib-i18n: >=0.2.0
- ride/lib-security: >=0.9.0
- ride/wra-i18n: >=0.2.0
This package is auto-updated.
Last update: 2024-10-13 00:51:30 UTC
README
This module enables a feature to edit translateable labels on your website instead of having to edit translation files.
Important: This module adds extra markup to all translateable labels, this might result in strange behaviour. Be careful when using and be aware some errors may occure in the application flow when the translator option is enabled.
Setup
This modules works with API calls on the /api/v1/i18n
endpoint. So you want to secure this path. Go to the top right user menu and navigate to "access control". Here you can secure the path by adding /api**
or /api/v1/i18n**
to the list.
A user has to be logged in and have the right permissions in order to use this module.
- Whitelist the
/api/v1/i18n**
path. - Enable the
permission.i18n.inline.translate
permission.
Usage
You can now toggle the translator in the top menu in the backend.
When the translator is enabled, you'll see the translation interface in the bottom left corner. You can click a translation to edit it.
When editing a translation, all labels using that translation will be highlighted. It's also possible to alt+click a translation to quickly open the edit window.