Merge branch 'master' of github.com:esteemapp/esteem-mobile into feature/boost

This commit is contained in:
Mustafa Buyukcelebi 2019-07-23 22:26:37 +03:00
commit f014060eed
76 changed files with 116 additions and 42 deletions

View File

@ -105,6 +105,7 @@
"transfers": "Kirèm"
},
"pincode": "Kode PIN",
"reset_pin": "Reset Pin Code",
"reset": "Atôe ulang",
"nsfw_content": "Konten urëung chik",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "التحويلات"
},
"pincode": "رمز PIN",
"reset_pin": "Reset Pin Code",
"reset": "إعادة",
"nsfw_content": "محتوى NSFW",
"send_feedback": "إرسال الملاحظات",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Köçürmə"
},
"pincode": "PIN kod",
"reset_pin": "Reset Pin Code",
"reset": "Sıfırla",
"nsfw_content": "NSFW Məzmunu",
"send_feedback": "Əks Əlaqə Göndər",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -19,11 +19,11 @@
"unfollow": "folgt dir nicht mehr",
"ignore": "ignoriert dich",
"reblog": "hat deinen Beitrag geteilt",
"transfer": "transfered steem",
"transfer": "transferierte Steem",
"comingsoon": "Ranglisten-Feature kommt bald!",
"notification": "Benachrichtigungen",
"leaderboard": "Rangliste",
"epoint": "Points",
"epoint": "eSteem Punkte",
"leaderboard_title": "Tägliche Top-User",
"recent": "Vor kurzem",
"yesterday": "Gestern",
@ -32,14 +32,14 @@
"older_then": "Älter als ein Monat"
},
"points": {
"post": "Post",
"comment": "Comment",
"checkin": "Check-in",
"post": "Beitrag",
"comment": "Kommentar",
"checkin": "Einloggen",
"vote": "Vote",
"reblog": "Reblog",
"login": "Login",
"incoming_transfer_title": "Incoming transfer",
"outgoing_transfer_title": "Outgoing transfer",
"reblog": "Teilen",
"login": "Einloggen",
"incoming_transfer_title": "Eingehende Überweisung",
"outgoing_transfer_title": "Ausgehende Überweisung",
"checkin_extra": "Bonus",
"delegation": "Delegation",
"delegation_title": "Delegation reward",
@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Zurücksetzen",
"nsfw_content": "NSFW Inhalt",
"send_feedback": "Feedback senden",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -207,7 +207,8 @@
"removed": "Removed",
"same_user": "This user already added to list",
"unknow_error": "An error occurred",
"error": "Error"
"error": "Error",
"fetch_error": "Fetching data from server failed, please try again or notify us at info@esteem.app"
},
"post": {
"reblog_alert": "Are you sure you want to reblog?",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reiniciar",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Ülekanded"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Algseisundi Taastamine",
"nsfw_content": "Avalikuks Vaatamiseks Mitte Kõlblik Materjal",
"send_feedback": "Saada Tagasisidet",

View File

@ -105,6 +105,7 @@
"transfers": "تراکنش ها"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "راه اندازی مجدد",
"nsfw_content": "محتوای نامناسب برای کودکان",
"send_feedback": "ارسال پیشنهادات و انتقادات",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "PIN-koodi",
"reset_pin": "Reset Pin Code",
"reset": "Nollaa",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transferts"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Réinitialiser",
"nsfw_content": "Contenu NSFW",
"send_feedback": "Envoyer une suggestion",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "PIN kodus",
"reset_pin": "Reset Pin Code",
"reset": "Aftralagei",
"nsfw_content": "NSFW Content",
"send_feedback": "Sandei Anafilh",

View File

@ -105,6 +105,7 @@
"transfers": "העברות"
},
"pincode": "קוד PIN",
"reset_pin": "Reset Pin Code",
"reset": "אתחל",
"nsfw_content": "תוכן NSFW",
"send_feedback": "שלח\/י משוב",

View File

@ -105,6 +105,7 @@
"transfers": "स्थानांतरण"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "पुनः नियोजन",
"nsfw_content": "NSFW सामग्री",
"send_feedback": "प्रतिक्रिया भेजें",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Resetiraj",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Átutalások"
},
"pincode": "PIN kód",
"reset_pin": "Reset Pin Code",
"reset": "Visszaállítás",
"nsfw_content": "NSFW tartalom",
"send_feedback": "Visszajelzés küldése",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "PIN code",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfer"
},
"pincode": "Kode PIN",
"reset_pin": "Reset Pin Code",
"reset": "Setel Ulang",
"nsfw_content": "Konten NSFW",
"send_feedback": "Kirim Umpan balik",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Resetta",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "송금"
},
"pincode": "PIN 코드",
"reset_pin": "Reset Pin Code",
"reset": "초기화",
"nsfw_content": "NSFW 콘텐츠",
"send_feedback": "피드백 보내기",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Pervedimai"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Atstatyti",
"nsfw_content": "NSFW Turinys",
"send_feedback": "Siųsti Atsiliepimus",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Pindah"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Tetapkan semula",
"nsfw_content": "Kandungan NSFW",
"send_feedback": "Hantar Maklum Balas",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfer"
},
"pincode": "PIN code",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "Adult things",
"send_feedback": "Send as you see am",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transferências"
},
"pincode": "Código PIN",
"reset_pin": "Reset Pin Code",
"reset": "Reiniciar",
"nsfw_content": "Conteúdo NSFW",
"send_feedback": "Enviar feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transferuri"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Resetare",
"nsfw_content": "Conținut NSFW",
"send_feedback": "Trimite Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Переводы"
},
"pincode": "Пинкод",
"reset_pin": "Reset Pin Code",
"reset": "Сбросить",
"nsfw_content": "Ненормативное",
"send_feedback": "Отправить отзыв",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "PIN code",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "PIN kod",
"reset_pin": "Reset Pin Code",
"reset": "Resetuj",
"nsfw_content": "NSFW sadržaj",
"send_feedback": "Pošalji Povratnu Informaciju",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transferler"
},
"pincode": "Pinkod",
"reset_pin": "Reset Pin Code",
"reset": "Sifirla",
"nsfw_content": "NSFW İçeriği",
"send_feedback": "Geri Bildirim Gönder",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "PIN code",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "PIN code",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Reset",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Những phần chuyển khoản"
},
"pincode": "Mã PIN",
"reset_pin": "Reset Pin Code",
"reset": "Thiết lập lại",
"nsfw_content": "Nội dung NSFW (nội dung không phù hợp để xem trong môi trường làm việc hoặc gần trẻ em)",
"send_feedback": "Gửi phản hồi",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "Tun bere",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "Pincode",
"reset_pin": "Reset Pin Code",
"reset": "重置",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -105,6 +105,7 @@
"transfers": "Transfers"
},
"pincode": "PIN 碼",
"reset_pin": "Reset Pin Code",
"reset": "重置",
"nsfw_content": "NSFW Content",
"send_feedback": "Send Feedback",

View File

@ -1,7 +1,19 @@
import React from 'react';
import { Provider, connect } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { IntlProvider } from 'react-intl';
import { IntlProvider, addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
import id from 'react-intl/locale-data/id';
import ru from 'react-intl/locale-data/ru';
import de from 'react-intl/locale-data/de';
import it from 'react-intl/locale-data/it';
import hu from 'react-intl/locale-data/hu';
import tr from 'react-intl/locale-data/tr';
import ko from 'react-intl/locale-data/ko';
import lt from 'react-intl/locale-data/lt';
import pt from 'react-intl/locale-data/pt';
import fa from 'react-intl/locale-data/fa';
import { flattenMessages } from './utils/flattenMessages';
import messages from './config/locales';
@ -9,6 +21,8 @@ import messages from './config/locales';
import Application from './screens/application';
import { store, persistor } from './redux/store/store';
addLocaleData([...en, ...ru, ...de, ...id, ...it, ...hu, ...tr, ...ko, ...pt, ...lt, ...fa]);
const _renderApp = ({ locale }) => (
<PersistGate loading={null} persistor={persistor}>
<IntlProvider locale={locale} messages={flattenMessages(messages[locale])}>

View File

@ -7,24 +7,11 @@ import get from 'lodash/get';
import AppCenter from 'appcenter';
import changeNavigationBarColor from 'react-native-navigation-bar-color';
import { connect } from 'react-redux';
import { addLocaleData } from 'react-intl';
import { injectIntl } from 'react-intl';
import { NavigationActions } from 'react-navigation';
import { bindActionCreators } from 'redux';
import EStyleSheet from 'react-native-extended-stylesheet';
// Languages
import en from 'react-intl/locale-data/en';
import id from 'react-intl/locale-data/id';
import ru from 'react-intl/locale-data/ru';
import de from 'react-intl/locale-data/de';
import it from 'react-intl/locale-data/it';
import hu from 'react-intl/locale-data/hu';
import tr from 'react-intl/locale-data/tr';
import ko from 'react-intl/locale-data/ko';
import lt from 'react-intl/locale-data/lt';
import pt from 'react-intl/locale-data/pt';
import fa from 'react-intl/locale-data/fa';
// Constants
import AUTH_TYPE from '../../../constants/authType';
import ROUTES from '../../../constants/routeNames';
@ -79,8 +66,6 @@ import { encryptKey } from '../../../utils/crypto';
import darkTheme from '../../../themes/darkTheme';
import lightTheme from '../../../themes/lightTheme';
addLocaleData([...en, ...ru, ...de, ...id, ...it, ...hu, ...tr, ...ko, ...pt, ...lt, ...fa]);
class ApplicationContainer extends Component {
constructor(props) {
super(props);
@ -208,11 +193,11 @@ class ApplicationContainer extends Component {
if (get(result, 'title')) {
content = result;
} else {
this._handleAlert('No existing post');
this._handleAlert('deep_link.no_existing_post');
}
})
.catch(() => {
this._handleAlert('No existing post');
this._handleAlert('deep_link.no_existing_post');
});
routeName = ROUTES.SCREENS.POST;
@ -221,7 +206,7 @@ class ApplicationContainer extends Component {
profile = await getUser(author);
if (!profile) {
this._handleAlert('No existing user');
this._handleAlert('deep_link.no_existing_user');
return;
}
@ -243,8 +228,13 @@ class ApplicationContainer extends Component {
}
};
_handleAlert = (title = null, text = null) => {
Alert.alert(title, text);
_handleAlert = (text = null, title = null) => {
const { intl } = this.props;
Alert.alert(
intl.formatMessage({ id: title || 'alert.warning' }),
intl.formatMessage({ id: text || 'alert.unknow_error' }),
);
};
_handleAppStateChange = nextAppState => {
@ -345,10 +335,6 @@ class ApplicationContainer extends Component {
if (isConnected !== status) {
dispatch(setConnectivityStatus(status));
}
// TODO: solve this work arround
// NetInfo.isConnected.removeEventListener('connectionChange', this._handleConntectionChange);
// NetInfo.isConnected.addEventListener('connectionChange', this._handleConntectionChange);
};
_onBackPress = () => {
@ -450,7 +436,7 @@ class ApplicationContainer extends Component {
};
_fetchUserDataFromDsteem = async realmObject => {
const { dispatch } = this.props;
const { dispatch, intl } = this.props;
await getUser(realmObject.username)
.then(accountData => {
@ -461,9 +447,9 @@ class ApplicationContainer extends Component {
this._connectNotificationServer(accountData.name);
})
.catch(err => {
this._handleAlert();
Alert.alert(
`Fetching data from server failed, please try again or notify us at info@esteem.app
\n${err.message.substr(0, 20)}`,
`${intl.formatMessage({ id: 'alert.fetch_error' })} \n${err.message.substr(0, 20)}`,
);
});
};
@ -515,6 +501,7 @@ class ApplicationContainer extends Component {
otherAccounts,
currentAccount: { name, local },
dispatch,
intl,
} = this.props;
removeUserData(name)
@ -543,8 +530,7 @@ class ApplicationContainer extends Component {
})
.catch(err => {
Alert.alert(
`Fetching data from server failed, please try again or notify us at info@esteem.app
\n${err.substr(0, 20)}`,
`${intl.formatMessage({ id: 'alert.fetch_error' })} \n${err.message.substr(0, 20)}`,
);
});
};
@ -632,4 +618,4 @@ export default connect(
...bindActionCreators({ fetchGlobalProperties }, dispatch),
},
}),
)(ApplicationContainer);
)(injectIntl(ApplicationContainer));