Skip to content

Commit 4a375af

Browse files
committed
fix the readme
1 parent ba4e84a commit 4a375af

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,17 @@ This is the wrapper component that creates the vertical timeline.
3232
| name | Type | Required | Values Allowed | default values | Description |
3333
| ---------- | ------ | -------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
3434
| theme | object | false | colors | { yearColor: "#888888", lineColor: "#c5c5c5", dotColor: "#c5c5c5", borderDotColor: "#ffffff", titleColor: "#cccccc", subtitleColor: "#888888", textColor: "#cccccc" } | Set colors in all components |
35-
| lang | node | false | `en`, `es` or `de` | `en` | Change the language `from` and `to` texts and change the format in the dates |
35+
| lang | node | false | `en`, `es`, `de` or `zh_CN` | `en` | Change the language `from` and `to` texts and change the format in the dates |
3636
| dateFormat | string | false | `L`, `l` or `ll` | `L` | Change the presentation format of dates |
3737

3838
`dateFormat`: Receive only one of three options. (The options are same the [moment.js](https://momentjs.com/) using).
3939

40-
- The option `L` will return a date like `MM/DD/YYYY` (in English), `DD/MM/YYYY` (in Spanish) `DD.MM.YYYY` (in German).
41-
- The option `l` will return a date like `M/D/YYYY` (in English), `D/M/YYYY` (in Spanish) `D.M.YYYY` (in German).
42-
- The option `ll` will return a date like `MMM DD, YYYY` (in English), `DD de MMM, YYYY` (in Spanish) `DD. MMM YYYY` (in German).
40+
| | `L` | `l` | `ll` |
41+
|:---:|---|---|---|
42+
|English(`en`)| `MM/DD/YYYY` | `M/D/YYYY` | `MMM DD, YYYY` |
43+
|Spanish(`es`)| `DD/MM/YYYY` | `D/M/YYYY` | `DD de MMM, YYYY` |
44+
|German(`de`) | `DD.MM.YYYY` | `D.M.YYYY` | `DD. MMM YYYY` |
45+
|Simplified Chinese(`zh_CN`)| `YYYY 年 MM 月 DD 日` | `YYYY 年 M 月 D 日` | `YYYY 年MMM DD 日` |
4346

4447
### Container
4548

0 commit comments

Comments
 (0)