Closed tchapi closed 2 years ago
I haven't found where the docs (from your website) get built, but we might want to update and add a paragraph about it there if you find the PR relevant.
Sound good :) Documentation is https://github.com/a2lix/a2lix.github.com/blob/master/bundles/translation-form/3.x.html#L150-L169
ok, I'll try to find time to update the docs then
See https://github.com/a2lix/a2lix.github.com/pull/31 for the update to the docs
(The branch is protected so I cannot merge, but this PR and the other one in the docs should be good to go :) )
Thanks @tchapi, still something that I don't understand with the github rights to allow you to merge :/
🎉
Fixed
Tab labels are now translatable / can be tailored.
To do
Documentation
You may now set labels for each tab by adding a
locale_labels
array to theTranslationsType
form type, like so:If a label is not set here (in this examplen
de
for instance), its value will default to null and the previous behaviour will kick-in (the template with capitalize the locale name).Hence, this does not introduce any breaking change and no change of defaults, and seems perfectly safe.
As the
trans
filter is used in the templates, you can also use translation keys directly here: