Translation Added In New Theme Also

This commit is contained in:
devansh bawari 2021-06-24 20:01:05 +05:30
parent 2b4c6c6455
commit c3d0016ebe
4 changed files with 10 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
{
"/js/ui.js": "/js/ui.js?id=1a2a11fc54d0a5962a66",
"/js/ui.js": "/js/ui.js?id=6082b47e63a72492b2b4",
"/css/ui.css": "/css/ui.css?id=87c15a3e7af4ab272377"
}

View File

@ -121,6 +121,10 @@ trait ProvideDataGridPlus
'allLocales' => __('admin::app.admin.system.all-locales'),
'allCustomerGroups' => __('admin::app.admin.system.all-customer-groups'),
'search' => __('ui::app.datagrid.search'),
'searchTitle' => __('ui::app.datagrid.search-title'),
'channel' => __('ui::app.datagrid.channel'),
'locale' => __('ui::app.datagrid.locale'),
'customerGroup' => __('ui::app.datagrid.customer-group'),
'itemsPerPage' => __('ui::app.datagrid.items-per-page'),
'filter' => __('ui::app.datagrid.filter'),
'column' => __('ui::app.datagrid.column'),

View File

@ -1289,10 +1289,10 @@
switch (obj.column) {
case "search":
obj.label = "Search";
obj.label = this.translations.searchTitle;
break;
case "channel":
obj.label = "Channel";
obj.label = this.translations.channel;
if ("channels" in this.extraFilters) {
obj.prettyValue = this.extraFilters[
"channels"
@ -1304,7 +1304,7 @@
}
break;
case "locale":
obj.label = "Locale";
obj.label = this.translations.locale;
if ("locales" in this.extraFilters) {
obj.prettyValue = this.extraFilters["locales"].find(
locale => locale.code === obj.val
@ -1316,7 +1316,7 @@
}
break;
case "customer_group":
obj.label = "Customer Group";
obj.label = this.translations.customerGroup;
if ("customer_groups" in this.extraFilters) {
obj.prettyValue = this.extraFilters[
"customer_groups"