@prateek-webkul Hello! I hope everythings is ok with you.
Continuing the work with my spanish translation I've found another issue, that you should be considered.
As an Admin trying to edit a customer, to change his o her status to active or inactive; This part shows a two a hard core words, "Actived" and "Blocked".
This two words came from this file:
packages\Webkul\Admin\src\DataGrids\CustomerDataGrid.php
in the lines 82 and 85, as followings:
'wrapper' => function ($row) {
if ($row->status == 1) {
return 'Activated'; // line 82 inm CustomerDataGrid.php
} else {
return 'Blocked'; // line 85 in CustomerDataGrid.php
}
}
To be able to change this two word my spanish language, I did the following:
'wrapper' => function ($row) {
if ($row->status == 1) {
return trans('admin::app.datagrid.active'); // line 82 replaced
} else {
return trans('admin::app.datagrid.inactive'); // line 85 in CustomerDataGrid.php
}
}
Then I added these two properties - values pairs in the datagrid array, which is in my spanish translation file:
packages\Webkul\Admin\src\Resources\lang\es\app.php
'datagrid' => [
.
.
.
'active' => 'Activo',
'inactive' => 'Inactivo',
.
.
.
],
Please consider it to future updates to make easier the translation to other language.
Have nice day!