I’m in the process of improving the default “textarea” field. The three additional buttons now need a localized label and the modal headline needs to be translated.
It’s easily possible to overwrite the default fields by placing a custom field in the site/fields folder with the same name. But I’m not sure where to put the four additional translations.
The existing buttons use “l::get(‘fields.textarea.buttons.*.label’)” but I don’t want to change any file in the “kirby” or “panel” folders. That would be a pain in the ass when updating.
Other custom fields like the Visual Markdown Editor use a completely different way: manually detecting the panel language and loading the language files.
Is it possible to just add a “languages” folder to the field folder and use “l::get” to get these translations somehow?
I don’t really want to go the complicated path if it’s possible to do it the easy way.
Thank you!

