Properly mark strings for translation.

This commit is contained in:
Kia Lam 2021-09-03 12:36:04 -04:00
parent bba2a264ea
commit 41e837d1e2
2 changed files with 5 additions and 6 deletions

View File

@ -19,8 +19,8 @@ const QS_CONFIG = (order_by = 'name') =>
function AssociateModal({
header = t`Items`,
columns = [
{ key: 'hostname', name: 'Name' },
{ key: 'node_type', name: 'Node Type' },
{ key: 'hostname', name: t`Name` },
{ key: 'node_type', name: t`Node Type` },
],
title = t`Select Items`,
onClose,

View File

@ -49,10 +49,9 @@ function OptionsList({
<HeaderRow qsConfig={qsConfig}>
{columns?.length > 0 ? (
columns.map((col) => (
<HeaderCell
key={col.key}
sortKey={col.key}
>{t`${col.name}`}</HeaderCell>
<HeaderCell key={col.key} sortKey={col.key}>
{col.name}
</HeaderCell>
))
) : (
<HeaderCell sortKey="name">{t`Name`}</HeaderCell>