-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add torified webview in react-native (#247)
* Add android build workflow * Android Tor Requests * Fetching internal files (i18n) * react-native-tor does not implement PUT * Get Files from Tor * Revert "Add android build workflow" This reverts commit 340bcf8. * Fix Rebase Removals * External sources * react-native-tor crashes * Last Refactor * Fix/revert setup guide * Add /mobile as volume to npm-dev container On the fully dockerized dev environment the npm process cannot save files outside of /frontend directory. Now it can also save the builds to /mobile * Fix UsafeAlert * Run prettier * Run lint:fix * Main Profile Image fix * Remove Tor Requests limitation Co-authored-by: Reckless_Satoshi <[email protected]>
- Loading branch information
1 parent
0ce559f
commit d995e8f
Showing
39 changed files
with
3,838 additions
and
17,303 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
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
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,52 @@ | ||
import i18n from 'i18next'; | ||
import LanguageDetector from 'i18next-browser-languagedetector'; | ||
import { initReactI18next } from 'react-i18next'; | ||
import HttpApi from 'i18next-http-backend'; | ||
|
||
import translationEN from "../../static/locales/en.json"; | ||
import translationES from "../../static/locales/es.json"; | ||
import translationDE from "../../static/locales/de.json"; | ||
import translationRU from "../../static/locales/ru.json"; | ||
import translationPL from "../../static/locales/pl.json"; | ||
import translationFR from "../../static/locales/fr.json"; | ||
import translationCA from "../../static/locales/ca.json"; | ||
import translationIT from "../../static/locales/it.json"; | ||
import translationPT from "../../static/locales/pt.json"; | ||
import translationEU from "../../static/locales/th.json"; | ||
|
||
const config = { | ||
resources: { | ||
en: {translations: translationEN}, | ||
es: {translations: translationES}, | ||
ru: {translations: translationRU}, | ||
de: {translations: translationDE}, | ||
pl: {translations: translationPL}, | ||
fr: {translations: translationFR}, | ||
ca: {translations: translationCA}, | ||
it: {translations: translationIT}, | ||
pt: {translations: translationPT}, | ||
eu: {translations: translationEU}, | ||
}, | ||
fallbackLng: 'en', | ||
debug: false, | ||
// have a common namespace used around the full app | ||
ns: ['translations'], | ||
defaultNS: 'translations', | ||
keySeparator: false, // we use content as keys | ||
interpolation: { | ||
escapeValue: false, | ||
formatSeparator: ',', | ||
}, | ||
react: { | ||
useSuspense: false, | ||
}, | ||
} | ||
|
||
|
||
i18n | ||
.use(HttpApi) | ||
.use(LanguageDetector) | ||
.use(initReactI18next) | ||
.init(config); | ||
|
||
export default i18n; |
Oops, something went wrong.