https://github.com/jan-dh/translator
A translation field for Craft CMS π€
https://github.com/jan-dh/translator
craft craft-plugin craft3 craftcms static-translations translation-field
Last synced: 5 months ago
JSON representation
A translation field for Craft CMS π€
- Host: GitHub
- URL: https://github.com/jan-dh/translator
- Owner: jan-dh
- License: mit
- Created: 2019-07-18T20:48:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-19T18:07:39.000Z (almost 2 years ago)
- Last Synced: 2025-04-20T06:35:09.269Z (6 months ago)
- Topics: craft, craft-plugin, craft3, craftcms, static-translations, translation-field
- Language: PHP
- Homepage:
- Size: 419 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Translator plugin for Craft CMS 3.x & 4.x
A translation field for Craft CMS to add translatable text snippets from your templates to entries, channels, globals.

## Requirements
This plugin requires Craft CMS 3.x or 4.x.
## Installation
To install the plugin, follow these instructions.
1. Open your terminal and go to your Craft project:
cd /path/to/project
2. Then tell Composer to load the plugin:
composer require jandh/translator
3. In the Control Panel, go to Settings β Plugins and click the βInstallβ button for Translator.
## Translator Overview
Translator is a field type, that provides a UI in the form of a field for static translations from your templates. This way authors can edit translatable text snippets in the actual entry, category, ... they are used in. Making the translations editable on this level provides ensures a better author experience.
## Using Translator
Translator will pick up all the static translations from your templates and provides them as an option for your field.
Saving a new translation will add it to the static translations file (`translations/locale/site.php`). If no value exists or the file does not exists it will add it to the file or generate the file.
## Translator Roadmap
* π Add modules folder to the translation sources
Brought to you by [Jan D'Hollander](https://www.thebasement.be/)