Skip to content
This repository was archived by the owner on Nov 16, 2022. It is now read-only.

Commit 00d9853

Browse files
committed
[Tables Demo] Added Tables Demo locale.
1 parent 97c77db commit 00d9853

File tree

3 files changed

+44
-7
lines changed

3 files changed

+44
-7
lines changed

src/locale/EN.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
"label": "English",
44
"locale": {
55
"pages": {
6+
"TablesDemo": {
7+
"searchDescription": "Demo of Table parts components.",
8+
"searchTags": {
9+
"demo": "demo",
10+
"table": "table",
11+
"row": "row",
12+
"cell": "cell",
13+
"demonstration": "demonstration"
14+
},
15+
"simpleTableHeader": "Simple Table",
16+
"simpleTableSummary": "Tables are needed to showcase a lot of structured data.",
17+
"tablesWithMarkdownHeader": "Tables with markdown",
18+
"tablesWithMarkdownSummary": "You can use the __Markdown__ component to customize tables. Don't forget to set the ```typographyInheritSize``` and ```inline``` props in the __Markdown__ component",
19+
"moreInfoHeader": "More info",
20+
"moreInfoSummary": "You can find more info about tables usage [here](https://material-ui.com/components/tables/)."
21+
},
622
"CodeDemo": {
723
"searchDescription": "Demo of Code showers components.",
824
"searchTags": {

src/locale/RU.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,24 @@
33
"label": "Русский",
44
"locale": {
55
"pages": {
6+
"TablesDemo": {
7+
"searchDescription": "Demo of Table parts components.",
8+
"searchTags": {
9+
"demo": "demo",
10+
"table": "table",
11+
"row": "row",
12+
"cell": "cell",
13+
"demonstration": "demonstration",
14+
"table_ru": "таблицф",
15+
"demo_ru": "думо"
16+
},
17+
"simpleTableHeader": "Простая таблица",
18+
"simpleTableSummary": "Таблицы нужны для демонстрации большого количества структурированных данных.",
19+
"tablesWithMarkdownHeader": "Таблицы с markdown",
20+
"tablesWithMarkdownSummary": "Для кастомизации таблиц вы можете использовать компонент __Markdown__. Не забудьте выставить пропы ```typographyInheritSize``` и ```inline``` в компоненте __Markdown__",
21+
"moreInfoHeader": "Больше информации",
22+
"moreInfoSummary": "Вы можете узнать больше информации о настройке таблиц [тут](https://material-ui.com/components/tables/)ю"
23+
},
624
"CodeDemo": {
725
"searchDescription": "Демонстрация космпонентов Code showers",
826
"searchTags": {

src/pages/Components/TablesDemo/index.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,19 @@ import H2 from "@material-docs/core/components/H2";
1818
import List from "@material-docs/core/components/List";
1919
import ListItem from "@material-docs/core/components/ListItem";
2020
import Link from "@material-docs/core/components/Link";
21+
import {useLang} from "@material-docs/core";
2122

2223
export default function TablesDemo() {
24+
const {lang} = useLang();
25+
const locale = lang.locale.pages.TablesDemo;
26+
2327
return (
2428
<DocsPage
2529
name={"Tables"}
2630
>
2731
<H1>Tables</H1>
28-
<Markdown></Markdown>
29-
<H3>Simple Table</H3>
30-
<Markdown>Таблицы нужны для демонстрации большого количества структурированных данных.</Markdown>
32+
<H3>{locale.simpleTableHeader}</H3>
33+
<Markdown>{locale.simpleTableSummary}</Markdown>
3134
<DemoWithCode
3235
theme={"darcula"}
3336
code={simpleTableCode}
@@ -39,8 +42,8 @@ export default function TablesDemo() {
3942
<SimpleTable/>
4043
</Box>
4144
</DemoWithCode>
42-
<H3>Tables with markdown</H3>
43-
<Markdown>Для кастомизации таблиц вы можете использовать компонент __Markdown__. Не забудьте выставить пропы ```typographyInheritSize``` и ```inline``` в компоненте __Markdown__</Markdown>
45+
<H3>{locale.tablesWithMarkdownHeader}</H3>
46+
<Markdown>{locale.tablesWithMarkdownSummary}</Markdown>
4447
<DemoWithCode
4548
theme={"darcula"}
4649
code={tableWithMarkdownCode}
@@ -51,8 +54,8 @@ export default function TablesDemo() {
5154
<TableWithMarkdown/>
5255
</Box>
5356
</DemoWithCode>
54-
<H2>Больше информации</H2>
55-
<Markdown>Вы можете узнать больше информации о настройке таблиц [тут]()</Markdown>
57+
<H2>{locale.moreInfoHeader}</H2>
58+
<Markdown>{locale.moreInfoSummary}</Markdown>
5659
<H2>Demos</H2>
5760
<List>
5861
<ListItem><Link page={["Component APIs", "Table"]}>Table</Link></ListItem>

0 commit comments

Comments
 (0)