How do I handle translations?

When defining your setting groups title/summary, or a settings label/hint you can make use of Laravel Localization for translations.


namespace Acme\MyModule;

use Aero\Common\Facades\Settings;
use Aero\Common\Providers\ModuleServiceProvider;
use Aero\Common\Settings\SettingGroup;

class ServiceProvider extends ModuleServiceProvider
   public function setup()
       Settings::group('acme-my-module', function (SettingGroup $group) {

Articles in this section

Was this article helpful?
0 out of 0 found this helpful