diff --git a/src/components/HeaderBreadcrumbs/HeaderBreadcrumbs.tsx b/src/components/HeaderBreadcrumbs/HeaderBreadcrumbs.tsx index fe6fe490b..c25d3e184 100644 --- a/src/components/HeaderBreadcrumbs/HeaderBreadcrumbs.tsx +++ b/src/components/HeaderBreadcrumbs/HeaderBreadcrumbs.tsx @@ -4,6 +4,8 @@ import {useAnalytics} from '../../hooks'; import {DefaultEventNames, HeaderBreadCrumbsProps} from '../../models'; import {block} from '../../utils'; +import {i18n} from './i18n'; + import './HeaderBreadcrumbs.scss'; const b = block('header-breadcrumbs'); @@ -17,7 +19,7 @@ export default function HeaderBreadcrumbs(props: HeaderBreadCrumbsProps) { }, [analyticsEvents, handleAnalytics]); return ( -
+
{items?.map((item) => (
diff --git a/src/components/HeaderBreadcrumbs/i18n/en.json b/src/components/HeaderBreadcrumbs/i18n/en.json new file mode 100644 index 000000000..c5b14d561 --- /dev/null +++ b/src/components/HeaderBreadcrumbs/i18n/en.json @@ -0,0 +1,3 @@ +{ + "label": "You are here:" +} diff --git a/src/components/HeaderBreadcrumbs/i18n/index.ts b/src/components/HeaderBreadcrumbs/i18n/index.ts new file mode 100644 index 000000000..a4008e41a --- /dev/null +++ b/src/components/HeaderBreadcrumbs/i18n/index.ts @@ -0,0 +1,8 @@ +import {addComponentKeysets} from '@gravity-ui/uikit/i18n'; + +import {NAMESPACE} from '../../../utils/cn'; + +import en from './en.json'; +import ru from './ru.json'; + +export const i18n = addComponentKeysets({en, ru}, `${NAMESPACE}HeaderBreadcrumbs`); diff --git a/src/components/HeaderBreadcrumbs/i18n/ru.json b/src/components/HeaderBreadcrumbs/i18n/ru.json new file mode 100644 index 000000000..3d13ad8da --- /dev/null +++ b/src/components/HeaderBreadcrumbs/i18n/ru.json @@ -0,0 +1,3 @@ +{ + "label": "Вы здесь:" +}