Skip to content

Commit

Permalink
Nepali Language Translations added (#715)
Browse files Browse the repository at this point in the history
* Nepali Language Translations added

* Documentation for Nepali Table Created

* Nepali Option added to Locale Example Table

* Package Config updated

* HTML lang updated

* Table Header changed for example table

* Build Locales updated
  • Loading branch information
achyutkneupane committed Oct 6, 2023
1 parent 57d9076 commit 011420c
Show file tree
Hide file tree
Showing 18 changed files with 2,670 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import IT_Table from '../examples/localization-i18n-it';
import JA_Table from '../examples/localization-i18n-ja';
import NL_Table from '../examples/localization-i18n-nl';
import NO_Table from '../examples/localization-i18n-no';
import NP_Table from '../examples/localization-i18n-np';
import PL_Table from '../examples/localization-i18n-pl';
import PT_BR_Table from '../examples/localization-i18n-pt-BR';
import PT_Table from '../examples/localization-i18n-pt';
Expand Down Expand Up @@ -44,6 +45,7 @@ const supportedLocales = [
'ja',
'nl',
'no',
'np',
'pl',
'pt',
'pt-BR',
Expand Down Expand Up @@ -98,6 +100,7 @@ const LocaleExamples = () => {
{currentLocale === 'ja' && <JA_Table />}
{currentLocale === 'nl' && <NL_Table />}
{currentLocale === 'no' && <NO_Table />}
{currentLocale === 'np' && <NP_Table />}
{currentLocale === 'pl' && <PL_Table />}
{currentLocale === 'pt' && <PT_Table />}
{currentLocale === 'pt-BR' && <PT_BR_Table />}
Expand Down
Original file line number Diff line number Diff line change
@@ -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-np"
/>
);
};

export default ExampleTable;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Example

To run this example:

- `npm install` or `yarn`
- `npm run start` or `yarn start`
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="ne">
<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>

0 comments on commit 011420c

Please sign in to comment.