Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add intl #1242

Merged
merged 3 commits into from
Oct 14, 2018
Merged

add intl #1242

merged 3 commits into from
Oct 14, 2018

Conversation

xiaohuoni
Copy link
Member

Close: #1151

Close: #1151
@sorrycc
Copy link
Member

sorrycc commented Oct 14, 2018

dev 模式如果没有特别的理由,应该也加上,和 prod 保持一致。

@xiaohuoni
Copy link
Member Author

不是只有build之后才加上补丁的吗?

@sorrycc sorrycc merged commit fc8e7e7 into master Oct 14, 2018
@sorrycc sorrycc deleted the fix-umi-plugin-locale branch October 14, 2018 12:54
@ycjcl868
Copy link
Contributor

ycjcl868 commented Oct 18, 2018

安卓浏览器 intl 会报错:

image

image

@sorrycc
Copy link
Member

sorrycc commented Oct 18, 2018

@ycjcl868 有 fix 方案吗?

@ycjcl868
Copy link
Contributor

临时加了 intl polyfill ,恢复正常:

 <script>
   if (!window.Intl) {
    document.writeln('<script src="//gw.alipayobjects.com/os/rmsportal/ABHaqMdnjhVRfRtbBZYk.js"' + '>' + '<' + '/' + 'script>');
    }
  </script>

@ycjcl868
Copy link
Contributor

主要是安卓浏览器:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants