差异ngx-translate与i18n [英] Differences ngx-translate vs i18n

查看:103
本文介绍了差异ngx-translate与i18n的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

翻译(Angular)应用有多种方法,主要的主要方法是:

There are multiple methode to translate an (Angular) app, the big main methodes are :

ngx-translate

Angular 2本机i18n

据我所知,由于使用干净的url浏览,i18n对于SEO更容易

As far I understood i18n is easier for SEO because of the clean url browsing with

例如

app.com/de

app.com/de

app.com/en

app.com/en

另一方面,使用ngx-translate可以更轻松地在语言之间进行切换.

on the other hand with ngx-translate it is easier to switch between languages.

我知道ngx-translate的创建者是Angular为其i18n雇用的. 有人可以告诉我(pro/cons)的主要区别是什么吗?

I know that the creator of ngx-translate was hired by Angular for their i18n. Can anybody say me what the main differences are (pro/cons)?

推荐答案

我相信这个问题可以回答您的问题: https://github.com/ngx-translate/core/issues/495

I believe that this issue answers your question: https://github.com/ngx-translate/core/issues/495

这篇关于差异ngx-translate与i18n的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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