Skip to content

Commit af6a283

Browse files
CodedThemesgitbook-bot
CodedThemes
authored andcommitted
GitBook: [master] 2 pages modified
1 parent 66fbaf1 commit af6a283

File tree

2 files changed

+79
-9
lines changed

2 files changed

+79
-9
lines changed

localization.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ React Intl has a set of React components that provide a declarative way to setup
5656
return import('./../compiled-lang/fr.json');
5757
case 'ro':
5858
return import('./../compiled-lang/ro.json');
59-
case 'cn':
60-
return import('./../compiled-lang/cn.json');
59+
case 'zh':
60+
return import('./../compiled-lang/zh.json');
6161
default:
6262
return import('./../compiled-lang/en.json');
6363
}

template-config.md

+77-7
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,90 @@
44
You can edit this file at **`[ ../src/config.js ]`**
55
{% endhint %}
66

7-
| **Option** | **Default** | **Data Type** | **Description** |
8-
| :--- | :--- | :--- | :--- |
9-
| **basename** | / | String | `build time set subdomain or path of project directory` |
10-
| **theme** | light | String | `light, dark, nav-dark` |
11-
| **jwt** | - | Object | JSON web token configuration |
12-
| **firebase** | - | Object | `Firebase Authentication config` |
13-
| **auth0** | - | Object | `auth0 login config` |
7+
<table>
8+
<thead>
9+
<tr>
10+
<th style="text-align:left"><b>Option</b>
11+
</th>
12+
<th style="text-align:left"><b>Default</b>
13+
</th>
14+
<th style="text-align:left"><b>Data Type</b>
15+
</th>
16+
<th style="text-align:left"><b>Description</b>
17+
</th>
18+
</tr>
19+
</thead>
20+
<tbody>
21+
<tr>
22+
<td style="text-align:left"><b>basename</b>
23+
</td>
24+
<td style="text-align:left">/</td>
25+
<td style="text-align:left">String</td>
26+
<td style="text-align:left"><code>build time set subdomain or path of project directory</code>
27+
</td>
28+
</tr>
29+
<tr>
30+
<td style="text-align:left"><b>theme</b>
31+
</td>
32+
<td style="text-align:left">light</td>
33+
<td style="text-align:left">String</td>
34+
<td style="text-align:left"><code>light, dark, nav-dark</code>
35+
</td>
36+
</tr>
37+
<tr>
38+
<td style="text-align:left"><b>rtlLayout</b>
39+
</td>
40+
<td style="text-align:left">false</td>
41+
<td style="text-align:left">boolean</td>
42+
<td style="text-align:left"><code>false, true</code>
43+
</td>
44+
</tr>
45+
<tr>
46+
<td style="text-align:left"><b>i18n</b>
47+
</td>
48+
<td style="text-align:left">en</td>
49+
<td style="text-align:left">String</td>
50+
<td style="text-align:left">
51+
<p><code>en</code> - English</p>
52+
<p><code>fr</code> - fran&#xE7;ais</p>
53+
<p><code>ro</code> - Rom&#xE2;n&#x103;</p>
54+
<p><code>zh</code> - &#x4E2D;&#x56FD;&#x4EBA;</p>
55+
</td>
56+
</tr>
57+
<tr>
58+
<td style="text-align:left"><b>jwt</b>
59+
</td>
60+
<td style="text-align:left">-</td>
61+
<td style="text-align:left">Object</td>
62+
<td style="text-align:left">JSON web token configuration</td>
63+
</tr>
64+
<tr>
65+
<td style="text-align:left"><b>firebase</b>
66+
</td>
67+
<td style="text-align:left">-</td>
68+
<td style="text-align:left">Object</td>
69+
<td style="text-align:left"><code>Firebase Authentication config</code>
70+
</td>
71+
</tr>
72+
<tr>
73+
<td style="text-align:left"><b>auth0</b>
74+
</td>
75+
<td style="text-align:left">-</td>
76+
<td style="text-align:left">Object</td>
77+
<td style="text-align:left"><code>auth0 login config</code>
78+
</td>
79+
</tr>
80+
</tbody>
81+
</table>
1482

1583
{% tabs %}
1684
{% tab title="config.js" %}
1785
```javascript
1886
export default {
1987
basename: '/material-ui', // only at build time to set, like ///materially/react/default
2088
theme: 'light', // 'light', 'dark', 'nav-dark'
89+
rtlLayout: false,
90+
i18n: 'en', // 'en', 'fr', 'ro', 'zh'
2191
jwt: {
2292
secret: 'SECRET-KEY',
2393
timeout: '1 days'

0 commit comments

Comments
 (0)