-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b7da5b
commit d14dca7
Showing
8 changed files
with
215 additions
and
16 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
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,27 @@ | ||
import i18n from "i18next"; | ||
import { initReactI18next } from "react-i18next"; | ||
|
||
import Backend from "i18next-http-backend"; | ||
import LanguageDetector from "i18next-browser-languagedetector"; | ||
|
||
import en from "./locales/en.json"; | ||
import fr from "./locales/fr.json"; | ||
|
||
export default i18n | ||
.use(Backend) | ||
.use(LanguageDetector) | ||
.use(initReactI18next) | ||
.init({ | ||
fallbackLng: "en", | ||
resources: { | ||
en: { | ||
translation: en, | ||
}, | ||
fr: { | ||
translation: fr, | ||
}, | ||
}, | ||
interpolation: { | ||
escapeValue: false, | ||
}, | ||
}); |
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,21 @@ | ||
{ | ||
"sharingItem": { | ||
"generateRoom": "Generate a room", | ||
"shareCurrentPage": "Share current page", | ||
"joinRoom": "Join room", | ||
"joinRoomPlaceholder": "id of room...", | ||
"closeJoinRoom": "Close joining room mode", | ||
"roomId": "Copy room id to clipboard", | ||
"leaveRoom": "Leave room" | ||
}, | ||
"nextcloud": { | ||
"stateMessage": { | ||
"Created": "created", | ||
"Updated": "updated" | ||
}, | ||
"toast": { | ||
"success": "\"{{fileName}}\" has been {{state}} on your Nextcloud", | ||
"error": "Loggin to your Nextcloud and retry" | ||
} | ||
} | ||
} |
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,21 @@ | ||
{ | ||
"sharingItem": { | ||
"generateRoom": "Créer une salle", | ||
"shareCurrentPage": "Partager la page", | ||
"joinRoom": "Rejoindre une salle", | ||
"joinRoomPlaceholder": "id de la salle...", | ||
"closeJoinRoom": "Fermer le mode rejoindre", | ||
"roomId": "Copier l'id de la salle dans le presse papier", | ||
"leaveRoom": "Quitter la salle" | ||
}, | ||
"nextcloud": { | ||
"stateMessage": { | ||
"created": "crée", | ||
"updated": "mis à jour" | ||
}, | ||
"toast": { | ||
"success": "\"{{fileName}}\" as été {{state}} dans votre Nextcloud", | ||
"error": "Connectez vous à votre Nextcloud et réessayez" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -2,3 +2,5 @@ import "react-toastify/dist/ReactToastify.css"; | |
import "./assets/scss/main.scss"; | ||
|
||
import "./ce"; | ||
|
||
import "./i18n"; |
Oops, something went wrong.