mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
Update index.js
This commit is contained in:
parent
0e503131e4
commit
a0b51f5fc0
@ -140,14 +140,17 @@ const setDateTimeLocale = async () => {
|
||||
*/
|
||||
if (process.env.JEST_WORKER_ID === undefined) {
|
||||
if (language?.isRTL) {
|
||||
I18nManager.allowRTL(true);
|
||||
I18nManager.forceRTL(true);
|
||||
} else {
|
||||
I18nManager.allowRTL(false);
|
||||
I18nManager.forceRTL(false);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
dayjs.locale('en');
|
||||
if (process.env.JEST_WORKER_ID === undefined) {
|
||||
I18nManager.allowRTL(false);
|
||||
I18nManager.forceRTL(false);
|
||||
}
|
||||
}
|
||||
@ -169,6 +172,7 @@ const setLanguageLocale = async () => {
|
||||
strings.saveLanguage('en');
|
||||
strings.setLanguage('en');
|
||||
if (process.env.JEST_WORKER_ID === undefined) {
|
||||
I18nManager.allowRTL(false);
|
||||
I18nManager.forceRTL(false);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user