Skip to content

Commit

Permalink
publish new cs locale
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Sep 15, 2022
1 parent 1d0467a commit c6a819b
Show file tree
Hide file tree
Showing 65 changed files with 1,496 additions and 53 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -27,6 +27,8 @@ __Built with [Material UI <sup>V5</sup>](https://mui.com) and [TanStack Table <s

_Quickly Create React Data Tables with Material Design_

_Full [Localization (i18n)](https://www.material-react-table.com/docs/guides/localization) Support!_

Join the [Discord](https://discord.gg/5wqyRx6fnm) server to join in on the development discussion or ask questions

View the [Docs Website](https://www.material-react-table.com/)
Expand Down
6 changes: 5 additions & 1 deletion material-react-table-docs/components/mdx/LocaleExamples.tsx
Expand Up @@ -3,6 +3,9 @@ import dynamic from 'next/dynamic';
import { Box, Skeleton, Tab, Tabs } from '@mui/material';

//Locale Examples
const CS_Table = dynamic(() => import('../../examples/localization-i18n-cs'), {
ssr: false,
});
const ES_Table = dynamic(() => import('../../examples/localization-i18n-es'), {
ssr: false,
});
Expand All @@ -16,7 +19,7 @@ const PT_BR_Table = dynamic(
},
);

const supportedLocales = ['es', 'pl', 'pt-BR'];
const supportedLocales = ['cs', 'es', 'pl', 'pt-BR'];

const LocaleExamples = () => {
const [currentLocale, setCurrentLocale] = useState('es');
Expand All @@ -40,6 +43,7 @@ const LocaleExamples = () => {
{typeof window !== 'undefined' && (
<div style={{ minHeight: '1500px' }} lang={currentLocale}>
<Suspense fallback={<Skeleton height="500px" width="100%" />}>
{currentLocale === 'cs' && <CS_Table />}
{currentLocale === 'es' && <ES_Table />}
{currentLocale === 'pl' && <PL_Table />}
{currentLocale === 'pt-BR' && <PT_BR_Table />}
Expand Down
Expand Up @@ -15,7 +15,7 @@
"@mui/material": "^5.9.0",
"@mui/x-date-pickers": "^5.0.1",
"dayjs": "^1.11.5",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -14,7 +14,7 @@
"@faker-js/faker": "^7.3.0",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -13,7 +13,7 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -14,7 +14,7 @@
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"export-to-csv": "^0.2.1",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -16,7 +16,7 @@
"@fortawesome/react-fontawesome": "^0.2.0",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.9.0",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Expand Up @@ -15,7 +15,7 @@
"@mui/material": "^5.9.0",
"@tanstack/react-query": "^4.0.5",
"axios": "^0.27.2",
"material-react-table": "^1.0.3",
"material-react-table": "^1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
18 changes: 18 additions & 0 deletions material-react-table-docs/examples/localization-i18n-cs/index.tsx
@@ -0,0 +1,18 @@
import React from 'react';
import { SourceCodeSnippet } from '../../components/mdx/SourceCodeSnippet';
import Example from './sandbox/src/TS';
const JS = require('!!raw-loader!./sandbox/src/JS.js').default;
const TS = require('!!raw-loader!./sandbox/src/TS.tsx').default;

const ExampleTable = () => {
return (
<SourceCodeSnippet
Component={Example}
javaScriptCode={JS}
typeScriptCode={TS}
tableId="localization-i18n-cs"
/>
);
};

export default ExampleTable;
@@ -0,0 +1,5 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
@@ -0,0 +1,6 @@
# Example

To run this example:

- `npm install` or `yarn`
- `npm run start` or `yarn start`
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Material React Table Example</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

2 comments on commit c6a819b

@vercel
Copy link

@vercel vercel bot commented on c6a819b Sep 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on c6a819b Sep 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.