I need to localize a message in a custom field. site/languages
doesn’t seem to be loaded by the Panel. I also tried without success to use the i18n
method on the field class.
$message = $this->i18n([
'en' => "welcome",
'pt' => "bem-vindo",
]);
What’s the best way to go about it?