Skip to content

Commit

Permalink
Localization
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Nov 15, 2019
1 parent 6e2658f commit daaee1d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';

const req = require.context('docs/src/pages/guides/globalization', false, /\.(md|js|tsx)$/);
const req = require.context('docs/src/pages/guides/localization', false, /\.(md|js|tsx)$/);
const reqSource = require.context(
'!raw-loader!../../src/pages/guides/globalization',
'!raw-loader!../../src/pages/guides/localization',
false,
/\.(js|tsx)$/,
);
const reqPrefix = 'pages/guides/globalization';
const reqPrefix = 'pages/guides/localization';

export default function Page() {
return <MarkdownDocs req={req} reqSource={reqSource} reqPrefix={reqPrefix} />;
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const pages = [
{ pathname: '/guides/migration-v3', title: 'Migration From v3' },
{ pathname: '/guides/migration-v0x', title: 'Migration From v0.x' },
{ pathname: '/guides/testing' },
{ pathname: '/guides/globalization' },
{ pathname: '/guides/localization' },
{ pathname: '/guides/right-to-left', title: 'Right-to-left' },
{ pathname: '/guides/flow' },
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Globalization
# Localization

<p class="description">Globalization is a process which combines the translation of component messages (localization) with their adaptation to specific cultures (internationalization).</p>
<p class="description">Localization (also referred to as "l10n") is the process of adapting a product or content to a specific locale or market.</p>

The default locale of Material-UI is English (United States). If you want to use other locales, you can follow the instructions below.

Expand Down Expand Up @@ -41,7 +41,7 @@ You can find the [sources](https://github.com/mui-org/material-ui/blob/master/pa

### Example

{{"demo": "pages/guides/globalization/Locales.js", "defaultCodeOpen": false}}
{{"demo": "pages/guides/localization/Locales.js", "defaultCodeOpen": false}}

## RTL Support

Expand Down
2 changes: 1 addition & 1 deletion docs/translations/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,6 @@
"/components/skeleton": "Skeleton",
"/components/tree-view": "Tree View",
"/customization/density": "Density",
"/guides/globalization": "Globalization"
"/guides/localization": "Localization"
}
}

0 comments on commit daaee1d

Please sign in to comment.