File tree Expand file tree Collapse file tree 4 files changed +17
-1
lines changed
Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import {useAnalytics} from '../../hooks';
44import { DefaultEventNames , HeaderBreadCrumbsProps } from '../../models' ;
55import { block } from '../../utils' ;
66
7+ import { i18n } from './i18n' ;
8+
79import './HeaderBreadcrumbs.scss' ;
810
911const b = block ( 'header-breadcrumbs' ) ;
@@ -17,7 +19,7 @@ export default function HeaderBreadcrumbs(props: HeaderBreadCrumbsProps) {
1719 } , [ analyticsEvents , handleAnalytics ] ) ;
1820
1921 return (
20- < div className = { b ( { theme} , className ) } >
22+ < div className = { b ( { theme} , className ) } aria-label = { i18n ( 'label' ) } >
2123 { items ?. map ( ( item ) => (
2224 < div className = { b ( 'item' ) } key = { item . url } >
2325 < a href = { item . url } className = { b ( 'text' ) } onClick = { onClick } >
Original file line number Diff line number Diff line change 1+ {
2+ "label" : " You are here:"
3+ }
Original file line number Diff line number Diff line change 1+ import { addComponentKeysets } from '@gravity-ui/uikit/i18n' ;
2+
3+ import { NAMESPACE } from '../../../utils/cn' ;
4+
5+ import en from './en.json' ;
6+ import ru from './ru.json' ;
7+
8+ export const i18n = addComponentKeysets ( { en, ru} , `${ NAMESPACE } HeaderBreadcrumbs` ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "label" : " Вы здесь:"
3+ }
You can’t perform that action at this time.
0 commit comments