react-intl vs react-i18next用于ReactJS国际化(i18n) [英] react-intl vs react-i18next for ReactJS internationalization (i18n)

查看:815
本文介绍了react-intl vs react-i18next用于ReactJS国际化(i18n)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用ReactJS构建多语言应用程序.该应用程序需要一个用于不同语言的自定义词典以及日期/时间,数字和货币的自动格式.

从我所看到的所有内容中,有2个非常受欢迎的库:

reac-intl 反应-i18next

彼此之间的优势是什么? 最受支持和最受欢迎的是什么?

支持多种语言的ReactJS应用程序的一般选择是什么?

解决方案

@whyp的响应未考虑react-i18next是i18next的一部分,该i18next拥有另外2100颗星(后面没有巨大的公司).

react-intl可能会造成混乱(个人意见). i18next肯定更易于集成,它提供了更多功能(加载资源,检测用户语言)

i18next不仅会做出反应-一次学习到处使用( https://www.i18next.com/supported-frameworks.html )

i18next还有一个服务层: http://locize.com/解决国际化之外的本地化过程(i18n)

I need to build a multilanguage application using ReactJS. The application needs a custom dictionary for different languages as well as automatic formatting of date/time, numbers and currency.

From all I´ve seen there are 2 very popular libraries:

reac-intl and react-i18next

What would be the advantages between one and another ? What is the most supported and popular one ?

What is the general choice for a ReactJS application supporting multiple languages ?

解决方案

@whyp's response is not taking into account react-i18next is part of i18next which has additional 2100 stars (without having a huge company in the back).

react-intl can be rather confusing (personal opinion). i18next for sure is simpler to integrate provides more features (loading resources, detection of user language)

i18next is not react only - learn once use everywhere (https://www.i18next.com/supported-frameworks.html)

i18next has an additional as a service layer: http://locize.com/ solving the localization process beside internationalization (i18n)

这篇关于react-intl vs react-i18next用于ReactJS国际化(i18n)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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