carbon-fields
carbon-fields copied to clipboard
Language files / Translations not working
Version
- Carbon Fields: Newest Version
- WordPress: Newest Version
- PHP: 7.
Expected Behavior
Language of Buttons etc should be automatically translated – dependent on the wordpress language settings (in my case de_DE)
Actual Behavior
Buttons are in English / no changes possible / language files under carbon-fields/vendor/htmlburger/carbon-fields/languages/ are not in use. These parts (Button Labels, mediaLibraryButtonLabel, mediaLibraryTitle) occure not tranlated, while the rest is in de_DE:
<OriginalImageField buttonLabel={ __( 'Select Image', 'carbon-fields-ui' ) } mediaLibraryButtonLabel={ __( 'Use Image', 'carbon-fields-ui' ) } mediaLibraryTitle={ __( 'Select Image', 'carbon-fields-ui' ) } { ...props } />
Is there any posibility to set the language file for example via the functions.php?
any news on this? i'm hitting the same issue for "es_ES" locale.
It would be a wonderful thing if we could have the possibility of translating "Italian in my case" into the language in use. Currently I have changed the entries inside the * .js files but it is a short-sighted choice as when an update comes out all the work I have done would be lost.
It would be nice to have independent external files for language translations. (Although we should translate them, that's fine, the important thing is that you can only do the job once). The same thing if it would be possible to create a * .css file to overwrite the rules (being able to change color, hover, etc.) for the backend interface.