[英]Angular translate vs ng-i18next
I have used angular ng-i18next plugin for i18n feature that really good plugin but recently I saw someone use the plugin angular-translate and that have big star in the github repository. 我已经为i18n功能使用了angular ng-i18next插件,该插件确实非常好,但是最近我看到有人使用了angular-translate插件,并且在github存储库中拥有大明星。
The question for who use both plugin before can give the advance and disavance between 2 plugin. 谁同时使用两个插件的问题可以给出两个插件之间的优缺点。
Reference link: 参考链接:
I'm not familiar with i18next but angular-translate was adapted by angular team as official module. 我对i18next不熟悉,但是angular-translate是由angular团队改编为官方模块的。 so I recommend you to use angular-translate.
因此,我建议您使用angular-translate。
Angular-translate is really easy to use and have well documentation: Angular-translate确实易于使用,并具有完善的文档记录:
https://angular-translate.github.io https://angular-translate.github.io
from angular translate official site: 从角度翻译官方网站:
What? 什么? angular-translate is an AngularJS module that makes your life much easier when it comes to i18n and l10n including lazy loading and pluralization.
angular-translate是AngularJS模块,使用i18n和l10n(包括延迟加载和复数)可以使您的工作更加轻松。
Features: It provides components like filters and directives, asynchronous loading of i18n data, full pluralization support through MessageFormat and much more! 功能:它提供了诸如过滤器和指令之类的组件,i18n数据的异步加载,通过MessageFormat的全面复数支持等等!
Flexibility: angular-translate is very flexible. 灵活性:角度平移非常灵活。 You can build your own loaders, storages or error handlers and extend angular-translate to your needs!
您可以构建自己的加载器,存储器或错误处理程序,并根据需要扩展angular-translate!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.