在离子的白色黑屏在阿拉伯翻译 [英] White Blank Screen in Ionic on Arabic Translation

查看:257
本文介绍了在离子的白色黑屏在阿拉伯翻译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个离子应用程序,其中我也使用angular-translate lib。该应用程序在英语的所有视图工作,但是当我切换到阿拉伯语,在一些视图它工作正常,但一些视图显示一个白色的空白屏幕后,原来的视图,控制台没有任何东西。

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.

当我点击inspect元素,视图出现,从一个视图切换到另一个视图时有一个白色闪光,这是非常奇怪的。

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。我已经安装白名单

PS. I have whitelist installed

推荐答案

我有同样的问题,安装apk文件在我真正的现场移动设备,屏幕来了,没有别的出现!然后我将翻译库JS文件保存到我的本地离线项目,并在 index.html 上更改:

I had the same problem, after installing the apk file on my real live mobile device, the blank white screen was coming and nothing else appear ! then I saved the translate library JS file to my local ionic project and changed on 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>

这篇关于在离子的白色黑屏在阿拉伯翻译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆