Closed aiphee closed 7 years ago
Hi @aiphee it does not support yet.
A strategy like privateArray would help with that as constant values cannot easily be translated.
Adding translation support would be easy. You could just update EnumBehavior::enum()
to run the list values through __()
or similar before returning.
When we get to use it (currently just planned), we will patch it and contribute back, if no one beats us to it. We'd probably prefer __d()
with the domain set to the current plugin (if it is set) over __()
.
Is it possible to use different name for saving and displaying for multilingual purposes?