This are the steps to add a new language for Admin Panel.
- Create a new yml file in config/locales/camaleon_cms/admin/my_locale.yml
- Add your language name in config/locales/camaleon_cms/languages.yml
- Add your language translation for routes in config/locales/camaleon_cms/routes.yml
- Add your language key in config/system.json => admin_available_languages, sample: admin_available_languages: ["my_locale"]
- Add tinymce translation into "app/assets/javascripts/camaleon_cms/admin/tinymce/" for your language from: https://www.transifex.com/projects/p/tinymce/ or https://archive.tinymce.com/i18n/
- Add Jquery validate translation into "app/assets/javascripts/camaleon_cms/admin/jquery_validate" like my_locale.js (without "messages_") from: https://github.com/jzaefferer/jquery-validation/tree/master/src/localization
- Add moment-js translation into "app/assets/javascripts/camaleon_cms/admin/momentjs/" from https://github.com/moment/moment/tree/develop/src/locale
- Add your translation for javascript in config/locales/camaleon_cms/admin/js.yml
This are the steps to add a new language for Front Panel, like titles or buttons
- Add your language key in config/system.json => available_languages
- Create a new yml locale into my_theme_folder/config/locales/my_locale.yml for your theme
- Create a new yml locale into my_plugin_folder/config/locales/my_locale.yml for your plugins
Restart your server and go to admin -> settings -> languages to enable them.
Created at: 05 Sep 19:59 | Updated at: 20 Dec 13:12