Skip to content

Commit 1bd9e60

Browse files
authored
Merge pull request #11 from gravity-ui/translate-english-pt-1
Translate english pt 1
2 parents 107cf79 + 05382bd commit 1bd9e60

File tree

39 files changed

+120
-120
lines changed

39 files changed

+120
-120
lines changed

.storybook/preview.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ configure({
2323
const withContextProvider: DecoratorFn = (Story, context) => {
2424
const theme = context.globals.theme;
2525

26-
// хак для установки темы в доке
26+
// to set theme in docs
2727
context.parameters.backgrounds.default = theme;
2828
context.globals.backgrounds = {
2929
value: theme === 'light' ? 'white' : 'black',
3030
};
3131
context.globals.background = theme;
3232

33-
// TODO: в будущем возможно появится вариант изменять динамически тему доки, нужно будет перейти на новый способ
33+
// TODO: to switch docs theme dynamically in the future
3434
// context.parameters.docs.theme = theme === 'light' ? CommonTheme.light : CommonTheme.dark;
3535

3636
return (
@@ -71,7 +71,7 @@ export const parameters = {
7171
// actions: {
7272
// argTypesRegex: '^on.*',
7373
// },
74-
jsx: {showFunctions: true}, // Для того, чтобы функции отображались в сорцах
74+
jsx: {showFunctions: true}, // to show function in sources
7575
viewport: {
7676
viewports: MINIMAL_VIEWPORTS,
7777
},

.storybook/theme.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const CloudTheme = create({
2626
inputTextColor: 'black',
2727
inputBorderRadius: 4,
2828

29-
brandUrl: 'https://github.com/yandex-cloud/page-constructor',
29+
brandUrl: 'https://github.com/gravity-ui/page-constructor',
3030
brandTitle: `<div style="font-size: 18px; color: #027bf3; font-weight: 600; margin-top: -6px; margin-bottom: 2px;">Page Constructor</div>
31-
<div style="font-size: 14px;color: #7d7d7d;font-weight: 400;">Yandex.Cloud websites components</div>`,
31+
<div style="font-size: 14px;color: #7d7d7d;font-weight: 400;">Yandex.Cloud website components</div>`,
3232
});

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ npm install @gravity-ui/page-constructor
1212

1313
При создании страниц используется компонентный подход: страница составляется из набора готовых блоков, которые могут быть расположены в произвольном порядке. Каждому блоку соответсвует определенный тип и набор параметров во входных данных.
1414

15-
Формат входных данных и список доступных блоков можно посмотреть в [документации](http://localhost:7009/?path=/story/информация--containers).
15+
Формат входных данных и список доступных блоков можно посмотреть в [документации](http://localhost:7009/?path=/story/information--containers).
1616

1717
### Начало работы
1818

@@ -115,8 +115,8 @@ interface Metrika = {
115115

116116
```typescript
117117
export interface LoadableConfigItem {
118-
fetch: FetchLoadableData; // функция загрузки данных
119-
component: React.ComponentType; //блок, в который нужно передать загруженные данные
118+
fetch: FetchLoadableData; // data loading method
119+
component: React.ComponentType; //blog to pass loaded data
120120
}
121121

122122
type FetchLoadableData<TData = any> = (blockKey: string) => Promise<TData>;

src/blocks/Banner/__stories__/Banner.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {PageConstructor} from '../../../containers/PageConstructor';
66
import yfm from '@doc-tools/transform';
77

88
export default {
9-
title: 'Блоки/Banner',
9+
title: 'Blocks/Banner',
1010
component: Banner,
1111
args: {
1212
theme: 'light',

src/blocks/CardLayout/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616

1717
На данный момент поддерживаются следующие блоки:
1818

19-
- [`BasicCard` - основная карточка](?path=/story/компоненты-карточки-basiccard--default&viewMode=docs)
20-
- [`Partner` - карточка партнера](?path=/story/компоненты-карточки-partner--default&viewMode=docs)
21-
- [`Price Detailed` - тарифы](?path=/story/компоненты-карточки-pricedetailed--marked-list&viewMode=docs)
22-
- [`BackgroundCard` - карточка с бэкграундом](?path=/story/компоненты-карточки-backgroundcard--default&viewMode=docs)
23-
- [`CardWithImage` - карточка с фотографией над заголовком](?path=/story/компоненты-карточки-cardwithimage--default&viewMode=docs)
24-
- [`NewsCard` - карточка новостей](?path=/story/компоненты-карточки-newscard--default&viewMode=docs)
25-
- [`TutorialCard` - карточка с иконкой](?path=/story/компоненты-карточки-tutorialcard--default&viewMode=docs)
19+
- [`BasicCard` - основная карточка](?path=/story/components-cards-basiccard--default&viewMode=docs)
20+
- [`Partner` - карточка партнера](?path=/story/components-cards-partner--default&viewMode=docs)
21+
- [`Price Detailed` - тарифы](?path=/story/components-cards-pricedetailed--marked-list&viewMode=docs)
22+
- [`BackgroundCard` - карточка с бэкграундом](?path=/story/components-cards-backgroundcard--default&viewMode=docs)
23+
- [`CardWithImage` - карточка с фотографией над заголовком](?path=/story/components-cards-cardwithimage--default&viewMode=docs)
24+
- [`NewsCard` - карточка новостей](?path=/story/components-cards-newscard--default&viewMode=docs)
25+
- [`TutorialCard` - карточка с иконкой](?path=/story/components-cards-tutorialcard--default&viewMode=docs)

src/blocks/CardLayout/__stories__/CardLayout.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {BlockType, CardLayoutBlockModel, SubBlockType} from '../../../models';
77
import {PageConstructor} from '../../../containers/PageConstructor/PageConstructor';
88

99
export default {
10-
title: 'Блоки/CardLayout',
10+
title: 'Blocks/CardLayout',
1111
component: CardLayout,
1212
} as Meta;
1313

src/blocks/Companies/__stories__/Companies.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {BlockType, CompaniesBlockModel} from '../../../models';
66
import {PageConstructor} from '../../../containers/PageConstructor/PageConstructor';
77

88
export default {
9-
title: 'Блоки/Companies',
9+
title: 'Blocks/Companies',
1010
component: Companies,
1111
} as Meta;
1212

src/blocks/ContentLayout/__stories__/ContentLayout.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {PageConstructor} from '../../../containers/PageConstructor/PageConstruct
66
import yfm from '@doc-tools/transform';
77

88
export default {
9-
title: 'Блоки/ContentLayout',
9+
title: 'Blocks/ContentLayout',
1010
component: Content,
1111
} as Meta;
1212

src/blocks/ExtendedFeatures/__stories__/ExtendedFeatures.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ExtendedFeatures from '../ExtendedFeatures';
55
import {PageConstructor} from '../../../containers/PageConstructor/PageConstructor';
66

77
export default {
8-
title: 'Блоки/ExtendedFeatures',
8+
title: 'Blocks/ExtendedFeatures',
99
component: ExtendedFeatures,
1010
args: {
1111
colSizes: {

src/blocks/Header/__stories__/Header.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import yfm from '@doc-tools/transform';
66
import {PageConstructor} from '../../../containers/PageConstructor';
77

88
export default {
9-
title: 'Блоки/Header',
9+
title: 'Blocks/Header',
1010
component: Header,
1111
args: {
1212
image: undefined,

0 commit comments

Comments
 (0)