added translation

This commit is contained in:
TemuulenBM
2024-02-05 16:35:44 +08:00
parent 019be89e06
commit be382fcbd3
9 changed files with 105 additions and 28 deletions

View File

@@ -17,6 +17,14 @@ export default class ConsoleAdminOrganizationsController extends Controller {
* @type {Object}
*/
@service store;
/**
* Inject the `intl` service
*
* @var {Service}
*/
@service intl;
/**
* The Ember Router service for handling transitions between routes.
*
@@ -60,6 +68,13 @@ export default class ConsoleAdminOrganizationsController extends Controller {
*/
@tracked name;
/**
* The filterable param `country`
*
* @var {String}
*/
@tracked country;
/**
* Queryable parameters for this controller's model
*
@@ -79,15 +94,23 @@ export default class ConsoleAdminOrganizationsController extends Controller {
this.getAllCompanies();
this.columns = [
{
label: 'Name',
label: this.intl.t('common.name'),
valuePath: 'name',
resizable: true,
sortable: true,
filterable: true,
filterComponent: 'filter/string',
},
{
label: 'Country',
label: this.intl.t('common.country'),
valuePath: 'country_name',
resizable: true,
sortable: true,
filterable: true,
filterComponent: 'filter/string',
},
{
label: 'Created At',
label: this.intl.t('common.created-at'),
valuePath: 'createdAt',
},
];

View File

@@ -9,6 +9,13 @@ export default class ConsoleAdminOrganizationUsersController extends Controller
*/
@service filters;
/**
* Inject the `intl` service
*
* @var {Service}
*/
@service intl;
/**
* The current page of data being viewed
*
@@ -69,19 +76,19 @@ export default class ConsoleAdminOrganizationUsersController extends Controller
super(...arguments);
this.columns = [
{
label: 'Name',
label: this.intl.t('common.name'),
valuePath: 'name',
},
{
label: 'Phone',
label: this.intl.t('common.phone-number'),
valuePath: 'phone',
},
{
label: 'Email',
label: this.intl.t('common.email'),
valuePath: 'email',
},
{
label: 'Status',
label: this.intl.t('common.status'),
valuePath: 'status',
},
];