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';
4
4
import { DefaultEventNames , HeaderBreadCrumbsProps } from '../../models' ;
5
5
import { block } from '../../utils' ;
6
6
7
+ import { i18n } from './i18n' ;
8
+
7
9
import './HeaderBreadcrumbs.scss' ;
8
10
9
11
const b = block ( 'header-breadcrumbs' ) ;
@@ -17,7 +19,7 @@ export default function HeaderBreadcrumbs(props: HeaderBreadCrumbsProps) {
17
19
} , [ analyticsEvents , handleAnalytics ] ) ;
18
20
19
21
return (
20
- < div className = { b ( { theme} , className ) } >
22
+ < div className = { b ( { theme} , className ) } aria-label = { i18n ( 'label' ) } >
21
23
{ items ?. map ( ( item ) => (
22
24
< div className = { b ( 'item' ) } key = { item . url } >
23
25
< 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