Merge pull request #7080 from nixocio/ui_add_items_to_translation

Make consistent usage of `pluralizedItemName` for internationalization

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2020-05-19 20:51:17 +00:00
committed by GitHub
5 changed files with 5 additions and 5 deletions

View File

@@ -126,7 +126,7 @@ function JobList({ i18n, defaultParams, showTypeColumn = false }) {
hasContentLoading={isLoading || isDeleteLoading} hasContentLoading={isLoading || isDeleteLoading}
items={jobs} items={jobs}
itemCount={itemCount} itemCount={itemCount}
pluralizedItemName="Jobs" pluralizedItemName={i18n._(t`Jobs`)}
qsConfig={QS_CONFIG} qsConfig={QS_CONFIG}
onRowClick={handleSelect} onRowClick={handleSelect}
toolbarSearchColumns={[ toolbarSearchColumns={[

View File

@@ -162,7 +162,7 @@ class ResourceAccessList extends React.Component {
hasContentLoading={hasContentLoading} hasContentLoading={hasContentLoading}
items={accessRecords} items={accessRecords}
itemCount={itemCount} itemCount={itemCount}
pluralizedItemName="Roles" pluralizedItemName={i18n._(t`Roles`)}
qsConfig={QS_CONFIG} qsConfig={QS_CONFIG}
toolbarSearchColumns={[ toolbarSearchColumns={[
{ {

View File

@@ -108,7 +108,7 @@ function OrganizationsList({ i18n }) {
hasContentLoading={hasContentLoading} hasContentLoading={hasContentLoading}
items={organizations} items={organizations}
itemCount={organizationCount} itemCount={organizationCount}
pluralizedItemName="Organizations" pluralizedItemName={i18n._(t`Organizations`)}
qsConfig={QS_CONFIG} qsConfig={QS_CONFIG}
onRowClick={handleSelect} onRowClick={handleSelect}
toolbarSearchColumns={[ toolbarSearchColumns={[

View File

@@ -47,7 +47,7 @@ function OrganizationTeams({ id, i18n }) {
hasContentLoading={hasContentLoading} hasContentLoading={hasContentLoading}
items={teams} items={teams}
itemCount={itemCount} itemCount={itemCount}
pluralizedItemName="Teams" pluralizedItemName={i18n._(t`Teams`)}
qsConfig={QS_CONFIG} qsConfig={QS_CONFIG}
toolbarSearchColumns={[ toolbarSearchColumns={[
{ {

View File

@@ -151,7 +151,7 @@ class UsersList extends Component {
hasContentLoading={hasContentLoading} hasContentLoading={hasContentLoading}
items={users} items={users}
itemCount={itemCount} itemCount={itemCount}
pluralizedItemName="Users" pluralizedItemName={i18n._(t`Users`)}
qsConfig={QS_CONFIG} qsConfig={QS_CONFIG}
onRowClick={this.handleSelect} onRowClick={this.handleSelect}
toolbarSearchColumns={[ toolbarSearchColumns={[