Skip to content

Commit 7703bca

Browse files
committed
fix: Add styles and documentation for turkish translation
1 parent dd30e76 commit 7703bca

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,18 @@ This is the wrapper component that creates the vertical timeline.
6363
| name | Type | Required | Values Allowed | default values | Description |
6464
| ---------- | ------ | -------- | ------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
6565
| theme | object | false | colors | { yearColor: "#888888", lineColor: "#c5c5c5", dotColor: "#c5c5c5", borderDotColor: "#ffffff", titleColor: "#cccccc", subtitleColor: "#888888", textColor: "#cccccc" } | Set colors in all components |
66-
| lang | string | false | `en`, `es`, `de` or `zh_CN` | `en` | Change the language `from` and `to` texts and change the format in the dates |
66+
| lang | string | false | `en`, `es`, `de`, `tr` or `zh_CN` | `en` | Change the language `from` and `to` texts and change the format in the dates |
6767
| dateFormat | string | false | `only-number`, `short`, `with-weekday` or `full` | `only-number` | Change the presentation format of dates |
6868

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

71-
| | `only-number` | `short` | `with-weekday` | `full` |
72-
| :-------------------------: | ------------- | ---------------- | ----------------------- | ------------------------------ |
73-
| English(`en`) | `MM/D/YYYY` | `MMM DD, YYYY` | `ddd, MMM DD, YYYY` | `dddd, MMMM DD, YYYY` |
74-
| Spanish(`es`) | `D/MM/YYYY` | `DD MMM YYYY` | `ddd, DD [de] MMM YYYY` | `dddd, DD [de] MMMM [de] YYYY` |
75-
| German(`de`) | `D.MM.YYYY` | `DD.MMM.YYYY` | `ddd., DD. MMM. YYYY` | `dddd, DD. MMMM YYYY` |
76-
| Simplified Chinese(`zh_CN`) | `YYYY/MM/D` | `YYYY年MM月DD日` | `YYYY年MMM月DD日` | `YYYY年MM月DD日dddd` |
71+
| | `only-number` | `short` | `with-weekday` | `full` |
72+
| :--------------------------: | ------------- | ---------------- | ----------------------- | ------------------------------ |
73+
| English (`en`) | `MM/D/YYYY` | `MMM DD, YYYY` | `ddd, MMM DD, YYYY` | `dddd, MMMM DD, YYYY` |
74+
| Spanish (`es`) | `D/MM/YYYY` | `DD MMM YYYY` | `ddd, DD [de] MMM YYYY` | `dddd, DD [de] MMMM [de] YYYY` |
75+
| German (`de`) | `D.MM.YYYY` | `DD.MMM.YYYY` | `ddd., DD. MMM. YYYY` | `dddd, DD. MMMM YYYY` |
76+
| Turk (`tr`) | `DD.MM.YYYY` | `DD MMM YYYY` | `DD MMM YYYY ddd` | `DD MMMM YYYY dddd` |
77+
| Simplified Chinese (`zh_CN`) | `YYYY/MM/D` | `YYYY年MM月DD日` | `YYYY年MMM月DD日` | `YYYY年MM月DD日dddd` |
7778

7879
<h3 id="container">Container</h3>
7980

lib/cjs/styles/main.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/esm/styles/main.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vertical-timeline-component-react",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "A simple component for create a vertical timeline with React",
55
"main": "./lib/cjs/index.js",
66
"module": "./lib/esm/index.js",

src/styles/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,22 @@ const minWidth = () => ({
2929
'only-number_es': '85',
3030
'only-number_en': '85',
3131
'only-number_de': '85',
32+
'only-number_tr': '85',
3233
'only-number_zh': '85',
3334
short_es: '85',
3435
short_en: '90',
3536
short_de: '95',
37+
short_tr: '95',
3638
short_zh: '115',
3739
'with-weekday_es': '125',
3840
'with-weekday_en': '125',
3941
'with-weekday_de': '130',
42+
'with-weekday_tr': '130',
4043
'with-weekday_zh': '140',
4144
full_es: '125',
4245
full_en: '125',
4346
full_de: '125',
47+
full_tr: '125',
4448
full_zh: '125',
4549
});
4650

0 commit comments

Comments
 (0)