Add translation marks in Users
This commit is contained in:
parent
540c55515f
commit
06879bca7a
3 changed files with 17 additions and 17 deletions
|
@ -225,8 +225,8 @@ export default class CUD extends Component {
|
|||
const canDelete = isEdit && userId !== 1 && mailtrainConfig.user.id !== userId;
|
||||
|
||||
const rolesColumns = [
|
||||
{ data: 1, title: "Name" },
|
||||
{ data: 2, title: "Description" },
|
||||
{ data: 1, title: t("name") },
|
||||
{ data: 2, title: t("description") },
|
||||
];
|
||||
|
||||
|
||||
|
|
|
@ -29,15 +29,15 @@ export default class List extends Component {
|
|||
const t = this.props.t;
|
||||
|
||||
const columns = [
|
||||
{ data: 1, title: "Username" },
|
||||
{ data: 1, title: t("username") },
|
||||
];
|
||||
|
||||
if (mailtrainConfig.isAuthMethodLocal) {
|
||||
columns.push({ data: 2, title: "Full Name" });
|
||||
columns.push({ data: 2, title: t("fullName") });
|
||||
}
|
||||
|
||||
columns.push({ data: 3, title: "Namespace" });
|
||||
columns.push({ data: 4, title: "Role" });
|
||||
columns.push({ data: 3, title: t("namespace") });
|
||||
columns.push({ data: 4, title: t("role") });
|
||||
|
||||
columns.push({
|
||||
actions: data => {
|
||||
|
@ -72,4 +72,4 @@ export default class List extends Component {
|
|||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue