Closed twosg closed 5 years ago
A general option has been added to all fields in order to let a user add custom translations or override core translations. This feature is now in the develop
branch.
Basically all fields have a l10n
option where a user can provide key=>value pairs for translations. Core fields use this option so when defining a field, you'll be able to do this:
Field::choice('color', [
'l10n' => [
'placeholder' => __('Your translation')
]
]);
At first: Congratulations for this awesome work! Themosis should go core :)
I have a little suggestion for the next release:
Allow changing the Button text when adding media fields:
Currently the text is "Add" which somehow was translated to "OK" in my installation. I was confused and thought the field would not render, because the button appeared just before the save button for the tax.