Add translation marks in Users

This commit is contained in:
joker-x 2020-08-19 08:22:05 +02:00
parent 540c55515f
commit 06879bca7a
3 changed files with 17 additions and 17 deletions

View file

@ -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") },
];

View file

@ -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>
);
}
}
}