1
0
Fork 0

Add translations to KeyValueVersions page.

This commit is contained in:
Kitteh 2021-04-20 23:08:02 +01:00
parent 368feeb76b
commit 99f2aff7ca
2 changed files with 11 additions and 2 deletions

View file

@ -2,6 +2,8 @@ import { Page } from "../../types/Page.js";
import { getSecretMetadata } from "../../api.js";
import { setPageContent, setTitleElement, changePage } from "../../pageUtils.js";
import { makeElement } from "../../htmlUtils.js";
import i18next from 'i18next';
export class KeyValueVersionsPage extends Page {
constructor() {
@ -42,10 +44,10 @@ export class KeyValueVersionsPage extends Page {
}
get titleSuffix() {
return " (versions)";
return i18next.t("kv_sec_versions_suffix");
}
get name() {
return "K/V Versions";
return i18next.t("kv_sec_versions_title");
}
}

View file

@ -76,4 +76,11 @@ module.exports = {
"kv_sec_edit_invalid_json_err": "Invalid JSON",
"kv_sec_edit_suffix": " (edit)",
// Key Value Secret Versions Page
"kv_sec_versions_title": "K/V Edit",
"kv_sec_edit_btn": "Edit",
"kv_sec_edit_loading": "Loading Editor..",
"kv_sec_edit_invalid_json_err": "Invalid JSON",
"kv_sec_versions_suffix": " (edit)",
}