Laravel-backup: Error translate

Created on 25 Jul 2020  路  2Comments  路  Source: spatie/laravel-backup

image

enhancement good first issue help wanted

Most helpful comment

All values on this (probably) mail template seems like default values. The trans() helper call happens here. The notification subject also did not get translated?

    ->subject(trans('backup::notifications.backup_successful_subject', ['application_name' => $this->applicationName()]))
    ->line(trans('backup::notifications.backup_successful_body', ['application_name' => $this->applicationName(), 'disk_name' => $this->diskName()]));

Saw by your profile that you're from Vi峄噒 Nam. At the moment laravel-backup does not have a vietnamese (vi) language file. Maybe check the values for locale and fallback_locale at your config/app.php.

All 2 comments

All values on this (probably) mail template seems like default values. The trans() helper call happens here. The notification subject also did not get translated?

    ->subject(trans('backup::notifications.backup_successful_subject', ['application_name' => $this->applicationName()]))
    ->line(trans('backup::notifications.backup_successful_body', ['application_name' => $this->applicationName(), 'disk_name' => $this->diskName()]));

Saw by your profile that you're from Vi峄噒 Nam. At the moment laravel-backup does not have a vietnamese (vi) language file. Maybe check the values for locale and fallback_locale at your config/app.php.

In that case it would be great to be able to specify in config/backup.php what language to use (that is supported by the package) instead of defaulting to the app locale.

Was this page helpful?
0 / 5 - 0 ratings