简体   繁体   English

i18n PHP与AngularJS

[英]i18n PHP vs AngularJS

I have a small question about i18n, I have a test website in php and AngularJS, and I would apply across all i18n page of this website, I hesitate between php and angularjs i18n translation, I would like to have your opinion, 我有一个关于i18n的小问题,我有一个使用php和AngularJS的测试网站,我将在该网站的所有i18n页面上使用我,请在php和angularjs i18n转换之间犹豫,我想征询您的意见,

Best Regards 最好的祝福

I would go with PHP. 我会选择PHP。 PHP uses ICU for internationalization, which means that it supports hundreds of locales, and doe it well. PHP使用ICU进行国际化,这意味着它支持数百种语言环境,并且做得很好。 AngularJS, being client side, has severe size limitations, and in general the i18n support is not that good. 作为客户端的AngularJS具有严格的大小限制,并且一般而言,对i18n的支持不是很好。 And some things not even possible (for instance proper sorting) 还有一些甚至是不可能的事情(例如正确的排序)

Note: by "i18n" I understand things like number / currency / date / time formatting, sorting, MessageFormat that handles correctly things like plurals. 注意:通过“ i18n”,我可以理解诸如数字/货币/日期/时间格式,排序,MessageFormat之类的东西,它们可以正确处理复数形式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM