Add translations to KeyValueVersions page.
This commit is contained in:
parent
368feeb76b
commit
99f2aff7ca
|
@ -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");
|
||||
}
|
||||
}
|
|
@ -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)",
|
||||
|
||||
}
|
Loading…
Reference in a new issue