-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat(app): add i18n translations for de/en
- Loading branch information
Showing
7 changed files
with
112 additions
and
31 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,23 @@ | ||
{ | ||
"translation": { | ||
"artwork": "Meine Leinwand", | ||
"artworkTitle": "Gestalte mit einzelnen Bildelementen dein ganz eigenes europäisches Kunstwerk und teile es mit anderen.", | ||
"chooseLanguage": "Sprache wählen:", | ||
"collection": "Meine Sammlung", | ||
"collectionAddText": "Meiner Leinwand hinzufügen", | ||
"collectionClose": "Schließen", | ||
"collectionLoading": "Lade...", | ||
"collectionTitle": "Öffne die Tür zu neuen Gemälden, Skulpturen und Fotografien, die perfekt zu deinem Geschmack passen.", | ||
"portal": "Portal", | ||
"selection": "Meine Auswahl", | ||
"selectionCreator": "Urheber:in:", | ||
"selectionLocation": "Ort:", | ||
"selectionTitle": "Wähle deine persönlichen Favoriten aus.", | ||
"selectionUnknown": "Unbekannt", | ||
"selectionYear": "Jahr:", | ||
"startButtonText": "Los geht's!", | ||
"startSubtitle": "Entdecke hier die schönsten Sammlungsobjekte aus Museen, Galerien, Bibliotheken und Archiven verschiedener Länder Europas.", | ||
"startText": "Lass dich von der künstlerischen Vielfalt Europas inspirieren!", | ||
"startTitle": "Herzlich willkommen in der schillernden Welt von GLAMorous Europe!" | ||
} | ||
} |
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,23 @@ | ||
{ | ||
"translation": { | ||
"artwork": "My Artwork", | ||
"artworkTitle": "Use individual picture elements to create your very own European work of art and share it with others.", | ||
"chooseLanguage": "Choose Language:", | ||
"collection": "My Collection", | ||
"collectionAddText": "Add to my artwork", | ||
"collectionClose": "Close", | ||
"collectionLoading": "Loading...", | ||
"collectionTitle": "Open the door to new paintings, sculptures and photographs that perfectly match your taste.", | ||
"portal": "Portal", | ||
"selection": "My Selection", | ||
"selectionCreator": "Creator:", | ||
"selectionLocation": "Location:", | ||
"selectionTitle": "Choose your personal favourites.", | ||
"selectionUnknown": "Unknown", | ||
"selectionYear": "Year:", | ||
"startButtonText": "Let's go!", | ||
"startSubtitle": "Discover the most beautiful collection objects from museums, galleries, libraries and archives from various European countries.", | ||
"startText": "Be inspired by the artistic diversity of Europe!", | ||
"startTitle": "Welcome to the glittering world of GLAMorous Europe!" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,14 +1,30 @@ | ||
import i18next from "i18next"; | ||
import React from "react"; | ||
import { createRoot } from "react-dom/client"; | ||
import { I18nextProvider } from "react-i18next"; | ||
import { BrowserRouter } from "react-router-dom"; | ||
|
||
import App from "./components/App.tsx"; | ||
import "./index.css"; | ||
import de from "./locales/de.json"; | ||
import en from "./locales/en.json"; | ||
|
||
i18next.init({ | ||
interpolation: { escapeValue: false }, | ||
lng: "auto", | ||
fallbackLng: "de", | ||
resources: { | ||
de: { ...de }, | ||
en: { ...en }, | ||
}, | ||
}); | ||
|
||
createRoot(document.getElementById("root")!).render( | ||
<React.StrictMode> | ||
<BrowserRouter> | ||
<App /> | ||
</BrowserRouter> | ||
<I18nextProvider i18n={i18next}> | ||
<BrowserRouter> | ||
<App /> | ||
</BrowserRouter> | ||
</I18nextProvider> | ||
</React.StrictMode>, | ||
); |