White Blank Screen in Ionic on Arabic Translation

时间:2016-04-04 17:57:27

标签: angularjs cordova ionic-framework angular-translate

I am developing an Ionic app in which I am also using angular-translate lib. The app works in all views in English but when I switch to Arabic, on some views it work fine but on some of the views show a white blank screen after a blink of the original view with nothing in console.

It is very strange when i click on inspect element, the view appears and there is a white flash when switching from one view to another.

It only happens when I select Arabic as a language. It works fine in English lang.

What could be the possible reason and how can I overcome it?

PS. I have whitelist installed

3 个答案:

答案 0 :(得分:1)

我有同样的问题,在我真实的移动设备上安装apk文件后,空白的白色屏幕即将到来,没有别的东西出现!然后我将翻译库JS文件保存到我的本地离子项目并更改为 index.html

<script src="http://cdnjs.cloudflare.com/ajax/libs/bower-angular-translate/2.0.1/angular-translate.min.js"></script>

<script src="lib/translate/angular-translate.min.js"></script>

答案 1 :(得分:0)

我也在寻找答案,我也尝试将所有翻译都放在数组中并完全跳过angular-translate

答案 2 :(得分:0)

我有相同的空白屏幕,当我触摸按钮或输入框的位置时,会显示整个视图。

我的问题与外部库无关,但我有style.css有这个

body{direction: rtl;}

我将其更改为仅限于表单标记,空白页面消失