From efa0e57385a3ef669d70141859b40fff79989957 Mon Sep 17 00:00:00 2001 From: aliyanlatif Date: Wed, 14 Feb 2024 09:55:01 +0500 Subject: [PATCH] removed extra packages --- RiderApp/App.js | 2 -- RiderApp/i18next.js | 1 - RiderApp/package-lock.json | 23 ----------------------- RiderApp/package.json | 2 -- RiderApp/src/screens/Language/Language.js | 3 --- 5 files changed, 31 deletions(-) diff --git a/RiderApp/App.js b/RiderApp/App.js index aee2c4b..65ec388 100644 --- a/RiderApp/App.js +++ b/RiderApp/App.js @@ -6,7 +6,6 @@ import * as SplashScreen from "expo-splash-screen"; import React, { useEffect, useState } from "react"; import { Platform, StatusBar } from "react-native"; import FlashMessage from "react-native-flash-message"; -//import i18n from "./i18n"; import setupApolloClient from "./src/apollo/index"; import { AuthContext } from "./src/context/auth"; import { ConfigurationProvider } from "./src/context/configuration"; @@ -56,7 +55,6 @@ export default function App() { }; async function loadData() { - //await i18n.initAsync(); await Font.loadAsync({ MuseoSans300: require("./assets/font/MuseoSans/MuseoSans300.ttf"), MuseoSans500: require("./assets/font/MuseoSans/MuseoSans500.ttf"), diff --git a/RiderApp/i18next.js b/RiderApp/i18next.js index fa9ceb0..3b1643e 100644 --- a/RiderApp/i18next.js +++ b/RiderApp/i18next.js @@ -1,6 +1,5 @@ import i18next from "i18next"; import { initReactI18next } from "react-i18next"; -import * as Localization from "expo-localization"; import { Platform } from "react-native"; import { en } from "./languages/en"; import { de } from "./languages/de"; diff --git a/RiderApp/package-lock.json b/RiderApp/package-lock.json index 42578de..d1e8473 100644 --- a/RiderApp/package-lock.json +++ b/RiderApp/package-lock.json @@ -29,7 +29,6 @@ "expo": "^47.0.0", "expo-constants": "~14.0.2", "expo-font": "~11.0.1", - "expo-localization": "~14.0.0", "expo-location": "~15.0.1", "expo-modules-autolinking": "^1.5.1", "expo-navigation-bar": "~2.0.1", @@ -40,7 +39,6 @@ "expo-updates": "~0.15.6", "graphql": "^14.3.1", "graphql-tag": "^2.10.1", - "i18n-js": "^3.3.0", "i18next": "^23.8.2", "patch-package": "^6.5.1", "react": "18.1.0", @@ -8406,17 +8404,6 @@ "expo": "*" } }, - "node_modules/expo-localization": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/expo-localization/-/expo-localization-14.0.0.tgz", - "integrity": "sha512-Rx4ZAANTTVuY6EnM3WXjNWn+CSpDUOaJziHPB4Az+lb4r3JMQ1H+go9s8KY9DYP0IiRM3sQhiyFQqSWzsUgvHA==", - "dependencies": { - "rtl-detect": "^1.0.2" - }, - "peerDependencies": { - "expo": "*" - } - }, "node_modules/expo-location": { "version": "15.0.1", "resolved": "https://registry.npmjs.org/expo-location/-/expo-location-15.0.1.tgz", @@ -10134,11 +10121,6 @@ "node": ">=8" } }, - "node_modules/i18n-js": { - "version": "3.9.2", - "resolved": "https://registry.npmjs.org/i18n-js/-/i18n-js-3.9.2.tgz", - "integrity": "sha512-+Gm8h5HL0emzKhRx2avMKX+nKiVPXeaOZm7Euf2/pbbFcLQoJ3zZYiUykAzoRasijCoWos2Kl1tslmScTgAQKw==" - }, "node_modules/i18next": { "version": "23.8.2", "resolved": "https://registry.npmjs.org/i18next/-/i18next-23.8.2.tgz", @@ -15288,11 +15270,6 @@ "rimraf": "bin.js" } }, - "node_modules/rtl-detect": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/rtl-detect/-/rtl-detect-1.0.4.tgz", - "integrity": "sha512-EBR4I2VDSSYr7PkBmFy04uhycIpDKp+21p/jARYXlCSjQksTBQcJ0HFUPOO79EPPH5JS6VAhiIQbycf0O3JAxQ==" - }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", diff --git a/RiderApp/package.json b/RiderApp/package.json index 014d24f..7e1e875 100644 --- a/RiderApp/package.json +++ b/RiderApp/package.json @@ -43,7 +43,6 @@ "expo": "^47.0.0", "expo-constants": "~14.0.2", "expo-font": "~11.0.1", - "expo-localization": "~14.0.0", "expo-location": "~15.0.1", "expo-modules-autolinking": "^1.5.1", "expo-navigation-bar": "~2.0.1", @@ -54,7 +53,6 @@ "expo-updates": "~0.15.6", "graphql": "^14.3.1", "graphql-tag": "^2.10.1", - "i18n-js": "^3.3.0", "i18next": "^23.8.2", "patch-package": "^6.5.1", "react": "18.1.0", diff --git a/RiderApp/src/screens/Language/Language.js b/RiderApp/src/screens/Language/Language.js index 4665957..e1a2ad9 100644 --- a/RiderApp/src/screens/Language/Language.js +++ b/RiderApp/src/screens/Language/Language.js @@ -1,7 +1,5 @@ import AsyncStorage from "@react-native-async-storage/async-storage"; import { useNavigation } from "@react-navigation/native"; -import * as Localization from "expo-localization"; -import * as Updates from "expo-updates"; import React, { useEffect, useLayoutEffect, useState } from "react"; import { TouchableOpacity, View, ActivityIndicator } from "react-native"; import i18n from "../../../i18next"; @@ -65,7 +63,6 @@ function Language() { languageNameSetter(langName); } i18n.changeLanguage(lang); - //modalVisibleSetter(false); } catch (error) { console.error("Error during language selection:", error); } finally {