@tap-payments/auth-jsconnect 1.0.86 → 1.0.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/app.d.ts +9 -7
- package/build/app/settings.js +1 -1
- package/build/components/AnimationFlow/BottomSheet.js +3 -1
- package/build/constants/api.js +1 -1
- package/build/features/shared/Containers/FeatureContainer.js +3 -0
- package/build/utils/locale.d.ts +1 -1
- package/build/utils/locale.js +5 -3
- package/package.json +1 -1
package/build/@types/app.d.ts
CHANGED
|
@@ -152,14 +152,16 @@ export interface DeviceInfo {
|
|
|
152
152
|
entry: Entry;
|
|
153
153
|
}
|
|
154
154
|
export interface LocalProps {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
[country: string]: {
|
|
156
|
+
ar: {
|
|
157
|
+
translation: {
|
|
158
|
+
[key: string]: string;
|
|
159
|
+
};
|
|
158
160
|
};
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
en: {
|
|
162
|
+
translation: {
|
|
163
|
+
[key: string]: string;
|
|
164
|
+
};
|
|
163
165
|
};
|
|
164
166
|
};
|
|
165
167
|
}
|
package/build/app/settings.js
CHANGED
|
@@ -251,7 +251,7 @@ export var settingsSlice = createSlice({
|
|
|
251
251
|
.addCase(getLocale.fulfilled, function (state, action) {
|
|
252
252
|
state.loading = false;
|
|
253
253
|
state.error = null;
|
|
254
|
-
updateLocale(action.payload);
|
|
254
|
+
updateLocale(action.payload, state.data.appConfig.businessCountryCode);
|
|
255
255
|
})
|
|
256
256
|
.addCase(getLocale.rejected, function (state, action) {
|
|
257
257
|
state.loading = false;
|
|
@@ -36,7 +36,9 @@ var BottomSheetStyled = styled(BottomSheet)(function (_a) {
|
|
|
36
36
|
backgroundColor: 'transparent'
|
|
37
37
|
},
|
|
38
38
|
'[data-rsbs-header]': {
|
|
39
|
-
paddingBottom: theme.spacing(
|
|
39
|
+
paddingBottom: theme.spacing(6),
|
|
40
|
+
position: 'absolute',
|
|
41
|
+
width: '100vw'
|
|
40
42
|
},
|
|
41
43
|
'[data-rsbs-overlay]': {
|
|
42
44
|
backgroundColor: theme.palette.background.paper
|
package/build/constants/api.js
CHANGED
|
@@ -22,7 +22,7 @@ var SIGNUP_PATH = '/signup';
|
|
|
22
22
|
var SOURCE_INCOME_PATH = '/v2/sourceOfIncome';
|
|
23
23
|
var MONTHLY_INCOME_PATH = '/v2/monthlyIncome';
|
|
24
24
|
var BRAND_LIST_PATH = '/brand/list';
|
|
25
|
-
var FIREBASE_URL = 'https://goconnect-195cd-default-rtdb.asia-southeast1.firebasedatabase.app/
|
|
25
|
+
var FIREBASE_URL = 'https://goconnect-195cd-default-rtdb.asia-southeast1.firebasedatabase.app/locale.json';
|
|
26
26
|
export var ENDPOINT_PATHS = {
|
|
27
27
|
BASE_URL: API_BASE_URL,
|
|
28
28
|
BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
|
|
@@ -25,6 +25,9 @@ var Container = styled(Box)(function (_a) {
|
|
|
25
25
|
easing: theme.transitions.easing.easeInOut,
|
|
26
26
|
property: 'all'
|
|
27
27
|
},
|
|
28
|
+
_b[theme.breakpoints.down('sm')] = {
|
|
29
|
+
paddingTop: theme.spacing(5)
|
|
30
|
+
},
|
|
28
31
|
_b);
|
|
29
32
|
});
|
|
30
33
|
var FeatureContainer = React.forwardRef(function (props, ref) {
|
package/build/utils/locale.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { LocalProps } from '../@types';
|
|
2
|
-
export declare const updateLocale: (locale: LocalProps) => void;
|
|
2
|
+
export declare const updateLocale: (locale: LocalProps, country: string) => void;
|
package/build/utils/locale.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { initReactI18next } from 'react-i18next';
|
|
2
2
|
import i18n from '../i18n';
|
|
3
|
-
export var updateLocale = function (locale) {
|
|
3
|
+
export var updateLocale = function (locale, country) {
|
|
4
|
+
var data = locale[country] || locale['default'];
|
|
5
|
+
console.log('sssssssssssss', data);
|
|
4
6
|
if (i18n.isInitialized) {
|
|
5
7
|
i18n.removeResourceBundle('*', 'translation');
|
|
6
|
-
i18n.addResourceBundle('en', 'translation',
|
|
7
|
-
i18n.addResourceBundle('ar', 'translation',
|
|
8
|
+
i18n.addResourceBundle('en', 'translation', data.en.translation);
|
|
9
|
+
i18n.addResourceBundle('ar', 'translation', data.ar.translation);
|
|
8
10
|
}
|
|
9
11
|
else {
|
|
10
12
|
i18n.use(initReactI18next).init({
|