Skip to content

Commit c47471b

Browse files
authored
Added Greek language support (#1106)
1 parent fea94c9 commit c47471b

File tree

18 files changed

+2884
-1
lines changed

18 files changed

+2884
-1
lines changed

apps/material-react-table-docs/example-groups/LocaleExamples.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import BG_Table from '../examples/localization-i18n-bg';
66
import CS_Table from '../examples/localization-i18n-cs';
77
import DA_Table from '../examples/localization-i18n-da';
88
import DE_Table from '../examples/localization-i18n-de';
9+
import EL_Table from '../examples/localization-i18n-el';
910
import EN_Table from '../examples/localization-i18n-en';
1011
import ES_Table from '../examples/localization-i18n-es';
1112
import ET_Table from '../examples/localization-i18n-et';
@@ -47,6 +48,7 @@ const supportedLocales = [
4748
'cs',
4849
'da',
4950
'de',
51+
'el',
5052
'en',
5153
'es',
5254
'et',
@@ -125,6 +127,7 @@ const LocaleExamples = () => {
125127
{currentLocale === 'cs' && <CS_Table />}
126128
{currentLocale === 'da' && <DA_Table />}
127129
{currentLocale === 'de' && <DE_Table />}
130+
{currentLocale === 'el' && <EL_Table />}
128131
{currentLocale === 'en' && <EN_Table />}
129132
{currentLocale === 'es' && <ES_Table />}
130133
{currentLocale === 'et' && <ET_Table />}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { SourceCodeSnippet } from '../../components/mdx/SourceCodeSnippet';
2+
import Example from './sandbox/src/TS';
3+
const JS = require('!!raw-loader!./sandbox/src/JS.js').default;
4+
const TS = require('!!raw-loader!./sandbox/src/TS.tsx').default;
5+
6+
const ExampleTable = () => {
7+
return (
8+
<SourceCodeSnippet
9+
Component={Example}
10+
javaScriptCode={JS}
11+
typeScriptCode={TS}
12+
tableId="localization-i18n-el"
13+
/>
14+
);
15+
};
16+
17+
export default ExampleTable;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
.DS_Store
3+
dist
4+
dist-ssr
5+
*.local
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Example
2+
3+
To run this example:
4+
5+
- `npm install` or `yarn`
6+
- `npm run start` or `yarn start`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Material React Table Example</title>
7+
</head>
8+
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)