diff --git a/src/pages/KeyValue/KeyValueVersions.js b/src/pages/KeyValue/KeyValueVersions.js index 5d4a11a..32c2c23 100644 --- a/src/pages/KeyValue/KeyValueVersions.js +++ b/src/pages/KeyValue/KeyValueVersions.js @@ -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"); } } \ No newline at end of file diff --git a/src/translations/en.js b/src/translations/en.js index c5ae16e..60aa29b 100644 --- a/src/translations/en.js +++ b/src/translations/en.js @@ -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)", + } \ No newline at end of file