diff --git a/awx/ui/client/src/instance-groups/capacity-adjuster/capacity-adjuster.directive.js b/awx/ui/client/src/instance-groups/capacity-adjuster/capacity-adjuster.directive.js index e36916aca8..678b47d078 100644 --- a/awx/ui/client/src/instance-groups/capacity-adjuster/capacity-adjuster.directive.js +++ b/awx/ui/client/src/instance-groups/capacity-adjuster/capacity-adjuster.directive.js @@ -1,4 +1,4 @@ -function CapacityAdjuster (templateUrl, ProcessErrors, Wait) { +function CapacityAdjuster (templateUrl, ProcessErrors, Wait, strings) { return { scope: { state: '=', @@ -9,10 +9,10 @@ function CapacityAdjuster (templateUrl, ProcessErrors, Wait) { replace: true, link: function(scope) { const adjustment_values = [{ - label: 'CPU', + label: strings.get('capacityAdjuster.CPU'), value: scope.state.cpu_capacity, },{ - label: 'RAM', + label: strings.get('capacityAdjuster.RAM'), value: scope.state.mem_capacity }]; @@ -51,7 +51,8 @@ function CapacityAdjuster (templateUrl, ProcessErrors, Wait) { CapacityAdjuster.$inject = [ 'templateUrl', 'ProcessErrors', - 'Wait' + 'Wait', + 'InstanceGroupsStrings' ]; export default CapacityAdjuster; \ No newline at end of file diff --git a/awx/ui/client/src/instance-groups/instance-groups.strings.js b/awx/ui/client/src/instance-groups/instance-groups.strings.js index e21ff78396..6e4cb2c66d 100644 --- a/awx/ui/client/src/instance-groups/instance-groups.strings.js +++ b/awx/ui/client/src/instance-groups/instance-groups.strings.js @@ -10,7 +10,11 @@ function InstanceGroupsStrings (BaseString) { }; ns.list = { - PANEL_TITLE: t.s('INSTANCE GROUPS') + PANEL_TITLE: t.s('INSTANCE GROUPS'), + ROW_ITEM_LABEL_INSTANCES: t.s('Instances'), + ROW_ITEM_LABEL_RUNNING_JOBS: t.s('Running Jobs'), + ROW_ITEM_LABEL_TOTAL_JOBS: t.s('Total Jobs'), + ROW_ITEM_LABEL_USED_CAPACITY: t.s('Used Capacity') }; ns.tab = { @@ -33,6 +37,11 @@ function InstanceGroupsStrings (BaseString) { IS_OFFLINE_LABEL: t.s('Unavailable') }; + ns.capacityAdjuster = { + CPU: t.s('CPU'), + RAM: t.s('RAM') + }; + ns.jobs = { PANEL_TITLE: t.s('Jobs') };