diff --git a/dictation_client/src/components/header/constants.ts b/dictation_client/src/components/header/constants.ts index 8f9c1f9..79817eb 100644 --- a/dictation_client/src/components/header/constants.ts +++ b/dictation_client/src/components/header/constants.ts @@ -1,3 +1,4 @@ +import { getTranslationID } from "translation"; import { HeaderMenus, LoginedPaths } from "./types"; export const HEADER_MENUS_ACCOUNT = "Account"; @@ -8,17 +9,45 @@ export const HEADER_MENUS_WORKFLOW = "Workflow"; export const HEADER_MENUS_PARTNER = "Partners"; export const HEADER_MENUS_XXX = "XXX"; // XXX 仮のタブ -export const HEADER_MENUS: { label: HeaderMenus; path: LoginedPaths }[] = [ - { label: HEADER_MENUS_ACCOUNT, path: "/account" }, - { label: HEADER_MENUS_DICTATIONS, path: "/dictations" }, - { label: HEADER_MENUS_LICENSE, path: "/license" }, - { label: HEADER_MENUS_USER, path: "/user" }, - { label: HEADER_MENUS_WORKFLOW, path: "/workflow" }, - { label: HEADER_MENUS_PARTNER, path: "/partners" }, - { label: HEADER_MENUS_XXX, path: "/xxx" }, // XXX 仮のタブ +export const HEADER_MENUS: { + key: HeaderMenus; + label: string; + path: LoginedPaths; +}[] = [ + { + key: HEADER_MENUS_ACCOUNT, + label: getTranslationID("common.label.headerAccount"), + path: "/account", + }, + { + key: HEADER_MENUS_DICTATIONS, + label: getTranslationID("common.label.headerDictations"), + path: "/dictations", + }, + { + key: HEADER_MENUS_LICENSE, + label: getTranslationID("common.label.headerLicense"), + path: "/license", + }, + { + key: HEADER_MENUS_USER, + label: getTranslationID("common.label.headerUser"), + path: "/user", + }, + { + key: HEADER_MENUS_WORKFLOW, + label: getTranslationID("common.label.headerWorkflow"), + path: "/workflow", + }, + { + key: HEADER_MENUS_PARTNER, + label: getTranslationID("common.label.headerPartners"), + path: "/partners", + }, + { key: HEADER_MENUS_XXX, label: "xxx", path: "/xxx" }, // XXX 仮のタブ ]; -export const HEADER_NAME = "ODMS Cloud"; +export const HEADER_NAME = getTranslationID("common.label.headerName"); /** * adminのみに表示するヘッダータブ diff --git a/dictation_client/src/components/header/loginedHeader.tsx b/dictation_client/src/components/header/loginedHeader.tsx index 925d09b..0c8643a 100644 --- a/dictation_client/src/components/header/loginedHeader.tsx +++ b/dictation_client/src/components/header/loginedHeader.tsx @@ -61,11 +61,11 @@ const LoginedHeader: React.FC = (props: HeaderProps) => {
OM System
-
{HEADER_NAME}
+
{t(HEADER_NAME)}