Skip to content

Commit

Permalink
fix: unify translations for selected
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMuzyk committed Mar 8, 2024
1 parent 593f129 commit d47fc8b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1756,6 +1756,7 @@ export default {
mustBeOnlineToViewMembers: 'You must be online in order to view members of this workspace.',
requested: 'Requested',
distanceRates: 'Distance rates',
selected: ({selectedNumber}) => `${selectedNumber} selected`,
},
type: {
free: 'Free',
Expand Down Expand Up @@ -1817,7 +1818,6 @@ export default {
makeMember: 'Make member',
makeAdmin: 'Make admin',
selectAll: 'Select all',
selected: ({selectedNumber}) => `${selectedNumber} selected`,
error: {
genericAdd: 'There was a problem adding this workspace member.',
cannotRemove: 'You cannot remove yourself or the workspace owner.',
Expand Down Expand Up @@ -1923,7 +1923,6 @@ export default {
disableRate: 'Disable rate',
disableRates: 'Disable rates',
enableRates: 'Enable rates',
selected: 'Selected',
status: 'Status',
enabled: 'Enabled',
disabled: 'Disabled',
Expand Down
3 changes: 1 addition & 2 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,7 @@ export default {
mustBeOnlineToViewMembers: 'Debes estar en línea para poder ver los miembros de este espacio de trabajo.',
requested: 'Solicitado',
distanceRates: 'Tasas de distancia',
selected: ({selectedNumber}) => `${selectedNumber} seleccionados`,
},
type: {
free: 'Gratis',
Expand Down Expand Up @@ -1841,7 +1842,6 @@ export default {
makeMember: 'Hacer miembro',
makeAdmin: 'Hacer administrador',
selectAll: 'Seleccionar todo',
selected: ({selectedNumber}) => `${selectedNumber} seleccionados`,
error: {
genericAdd: 'Ha ocurrido un problema al añadir el miembro al espacio de trabajo.',
cannotRemove: 'No puedes eliminarte ni a ti mismo ni al dueño del espacio de trabajo.',
Expand Down Expand Up @@ -1948,7 +1948,6 @@ export default {
disableRate: 'Desactivar tasa',
disableRates: 'Desactivar tasas',
enableRates: 'Activar tasas',
selected: 'Seleccionada',
status: 'Estado',
enabled: 'Activada',
disabled: 'Desactivada',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceMembersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ function WorkspaceMembersPage({policyMembers, personalDetails, route, policy, se
<ButtonWithDropdownMenu<WorkspaceMemberBulkActionType>
shouldAlwaysShowDropdownMenu
pressOnEnter
customText={translate('workspace.people.selected', {selectedNumber: selectedEmployees.length})}
customText={translate('workspace.common.selected', {selectedNumber: selectedEmployees.length})}
buttonSize={CONST.DROPDOWN_BUTTON_SIZE.MEDIUM}
onPress={() => null}
options={getBulkActionsButtonOptions()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function PolicyDistanceRatesPage({policy, route}: PolicyDistanceRatesPageProps)
<ButtonWithDropdownMenu<WorkspaceDistanceRatesBulkActionType>
shouldAlwaysShowDropdownMenu
pressOnEnter
customText={`${selectedDistanceRates.length} ${translate('workspace.distanceRates.selected')}`}
customText={translate('workspace.common.selected', {selectedNumber: selectedDistanceRates.length})}
buttonSize={CONST.DROPDOWN_BUTTON_SIZE.MEDIUM}
onPress={() => null}
options={getBulkActionsButtonOptions()}
Expand Down

0 comments on commit d47fc8b

Please sign in to comment.