File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {withTheme} from './decorators/withTheme';
1111import { withLang } from './decorators/withLang' ;
1212import { withMobile } from './decorators/withMobile' ;
1313import { DocsDecorator } from './decorators/DocsDecorator/DocsDecorator' ;
14- import { MobileProvider , ThemeProvider } from '@gravity-ui/uikit' ;
14+ import { MobileProvider , ThemeProvider , Lang } from '@gravity-ui/uikit' ;
1515
1616import { routerData } from '../src/demo/mocks' ;
1717import { BlogConstructorProvider } from '../src/constructor/BlogConstructorProvider' ;
@@ -26,10 +26,25 @@ const withContextProvider: Decorator = (Story, context) => (
2626 </ React . StrictMode >
2727) ;
2828
29+ const localeEn = {
30+ code : 'en-En' ,
31+ lang : Lang . En ,
32+ langName : 'English' ,
33+ pathPrefix : 'en' ,
34+ } ;
35+
36+ const localeRu = {
37+ code : 'ru-Ru' ,
38+ lang : Lang . Ru ,
39+ langName : 'Russia' ,
40+ pathPrefix : 'ru' ,
41+ } ;
42+
2943const withBlogConstructorProvider : Decorator = ( Story , context ) => {
3044 return (
3145 < BlogConstructorProvider
3246 router = { routerData }
47+ locale = { context . globals . lang === 'en' ? localeEn : localeRu }
3348 isMobile = { context . globals . platform === 'mobile' }
3449 >
3550 < Story { ...context } />
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ $block: '.#{$namespace}post-card';
2626 & __header {
2727 & _fullWidth {
2828 min-height : auto ;
29- height : 100% ;
3029
3130 @media (min-width : map-get ($gridBreakpoints , ' lg' )) {
3231 width : 66% ;
You can’t perform that action at this time.
0 commit comments