-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
30 changed files
with
722 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ npm-debug.log | |
config.gypi | ||
package-lock.json | ||
.idea/ | ||
.travis.yml | ||
.travis.yml | ||
react-mui-scheduler-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"day": "يوم", | ||
"week": "أسبوع", | ||
"month": "شهر", | ||
"timeline": "الجدول الزمني", | ||
"mon": "الإثنين", | ||
"tue": "الثلاثاء", | ||
"wed": "تزوج", | ||
"thu": "خميس", | ||
"fri": "الجمعة", | ||
"sat": "قعد", | ||
"sun": "شمس", | ||
"search": "بحث" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import {createContext} from "react"; | ||
const DateFnsLocaleContext = createContext() | ||
export default DateFnsLocaleContext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"day": "Tag", | ||
"week": "Woche", | ||
"month": "Monat", | ||
"timeline": "Zeitleiste", | ||
"mon": "Mo", | ||
"tue": "Diens", | ||
"wed": "Mitt", | ||
"thu": "Donner", | ||
"fri": "Frei", | ||
"sat": "Sam", | ||
"sun": "Sonn", | ||
"search": "Suchen..." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"day": "Day", | ||
"week": "Week", | ||
"month": "Month", | ||
"timeline": "Timeline", | ||
"mon": "Mon", | ||
"tue": "Tue", | ||
"wed": "Wed", | ||
"thu": "Thu", | ||
"fri": "Fri", | ||
"sat": "Sat", | ||
"sun": "Sun", | ||
"search": "Search..." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"day": "Día", | ||
"week": "Semana", | ||
"month": "Mes", | ||
"timeline": "Cronología", | ||
"mon": "Lub", | ||
"tue": "Mar", | ||
"wed": "Mié", | ||
"thu": "Jue", | ||
"fri": "Vie", | ||
"sat": "Sáb", | ||
"sun": "Dom", | ||
"search": "Buscar..." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"day": "Jour", | ||
"week": "Semaine", | ||
"month": "Mois", | ||
"timeline": "Chronologie", | ||
"mon": "Lun", | ||
"tue": "Mar", | ||
"wed": "Mer", | ||
"thu": "Jeu", | ||
"fri": "Ven", | ||
"sat": "Sam", | ||
"sun": "Dim", | ||
"search": "Chercher..." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"day": "日", | ||
"week": "週", | ||
"month": "月", | ||
"timeline": "年表", | ||
"mon": "月曜日", | ||
"tue": "3月", | ||
"wed": "海", | ||
"thu": "ゲーム", | ||
"fri": "金", | ||
"sat": "土", | ||
"sun": "太陽", | ||
"search": "探す..." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"day": "낮", | ||
"week": "주", | ||
"month": "월", | ||
"timeline": "타임라인", | ||
"mon": "월", | ||
"tue": "화요일", | ||
"wed": "수", | ||
"thu": "목", | ||
"fri": "금", | ||
"sat": "앉았다", | ||
"sun": "해", | ||
"search": "검색..." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import i18n from "i18next" | ||
import { initReactI18next } from "react-i18next" | ||
|
||
import trEN from "./en/common.json" | ||
import trFR from "./fr/common.json" | ||
import trKO from "./ko/common.json" | ||
import trDE from "./de/common.json" | ||
import trES from "./es/common.json" | ||
import trAR from "./ar/common.json" | ||
import trJA from "./ja/common.json" | ||
import trZH from "./zh/common.json" | ||
|
||
const resources = { | ||
en: { common: trEN }, | ||
fr: { common: trFR }, | ||
ko: { common: trKO }, | ||
de: { common: trDE }, | ||
es: { common: trES }, | ||
ar: { common: trAR }, | ||
ja: { common: trJA }, | ||
zh: { common: trZH } | ||
} | ||
|
||
i18n | ||
// pass the i18n instance to react-i18next. | ||
.use(initReactI18next) | ||
// init i18next | ||
// for all options read: https://www.i18next.com/overview/configuration-options | ||
.init({ | ||
resources, | ||
lng: localStorage.getItem('i18nextLng'), | ||
ns: ["common"], | ||
defaultNS: "common", | ||
fallbackNS: "common", | ||
fallbackLng: ["en", "fr", "dev"], | ||
debug: false, | ||
interpolation: { | ||
escapeValue: false, // not needed for react as it escapes by default | ||
}, | ||
react: { wait: true }, | ||
}) | ||
|
||
export default i18n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"day": "天", | ||
"week": "星期", | ||
"month": "月", | ||
"timeline": "年表", | ||
"mon": "星期一", | ||
"tue": "三月", | ||
"wed": "海", | ||
"thu": "游戏", | ||
"fri": "周五", | ||
"sat": "星期六", | ||
"sun": "太阳", | ||
"search": "寻找..." | ||
} |
Oops, something went wrong.