-
-
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
d26c98e
commit fd001ad
Showing
12 changed files
with
3,263 additions
and
181 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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 i18next from "i18next"; | ||
import LanguageDetector from "i18next-browser-languagedetector"; | ||
import { initReactI18next } from "react-i18next"; | ||
import * as en from "./locales/en.json"; | ||
import * as de from "./locales/de.json"; | ||
|
||
i18next | ||
.use(LanguageDetector) | ||
.use(initReactI18next) // passes i18n down to react-i18next | ||
.init({ | ||
detection: { | ||
lookupQuerystring: "lang", | ||
}, | ||
fallbackLng: "en", | ||
|
||
resources: { | ||
en: { translation: en }, | ||
de: { translation: de }, | ||
}, | ||
|
||
interpolation: { | ||
escapeValue: false, // react already safes from xss => https://www.i18next.com/translation-function/interpolation#unescape | ||
}, | ||
react: { | ||
useSuspense: 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,23 @@ | ||
{ | ||
"meta": { | ||
"title": "Unbezahlbar Karte", | ||
"titleShort": "Unbezahlbar", | ||
"description": "Erlebe die Welt. Gratis." | ||
}, | ||
"search": { | ||
"placeholder": "Einen Ort suchen" | ||
}, | ||
"info": { | ||
"osmTags": "Dokumentation", | ||
"query": "Abfrage", | ||
"overpassTurbo": "overpass-turbo" | ||
}, | ||
"menu": { | ||
"note": "Hinweis für Kartographen hinzufügen", | ||
"edit": "Karte bearbeiten", | ||
"share": "Ort teilen", | ||
"theme": "Theme ändern", | ||
"about": "Über diese Seite", | ||
"donate": "Mich unterstützen" | ||
} | ||
} |
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 @@ | ||
{ | ||
"meta": { | ||
"title": "Priceless map", | ||
"description": "Experience the world. Free of charge.", | ||
"titleShort": "Priceless" | ||
}, | ||
"search": { | ||
"placeholder": "Search a location" | ||
}, | ||
"info": { | ||
"osmTags": "Documentation", | ||
"query": "Query", | ||
"overpassTurbo": "overpass-turbo" | ||
}, | ||
"menu": { | ||
"note": "Add note for mappers", | ||
"edit": "Edit map", | ||
"share": "Share place", | ||
"theme": "Change theme", | ||
"about": "About this site", | ||
"donate": "Support me" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -13,7 +13,8 @@ | |
"*", | ||
"@types/*" | ||
] | ||
} | ||
}, | ||
"resolveJsonModule": true | ||
}, | ||
"include": [ | ||
"*.tsx" | ||
|