创建JHipster应用程序后如何启用翻译支持 [英] How to enable translatation support after creating JHipster Application

查看:96
本文介绍了创建JHipster应用程序后如何启用翻译支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了JHipsterApplication-在出现提示"Would you like to enable translation support with Angular Translate? (Y/n)"时-我提供了"n".现在创建了应用程序,我想向我的应用程序添加翻译支持.无论如何,在创建应用程序后是否要添加翻译支持或启用在创建应用程序时被禁用的功能?

I created JHipsterApplication - at the time of the prompt "Would you like to enable translation support with Angular Translate? (Y/n)" - I provided "n". Now application is created and I want to add translation support to my application. Is there anyway to add translation support after the application is created or enable something which is disabled at the time of creating the application?

我尝试了"bower安装角度平移",但是它仍然说该项目的平移被禁用.无法添加语言."谢谢您的帮助.

I tried "bower install angular translate" but it still says Translation is disabled for this project. Language can not be added". Thank you for your help.

推荐答案

在项目文件夹中编辑.yo-rc.json文件,然后使用jhipster --with-entities重新生成您的应用,它将要求您覆盖某些文件,也许您会我将不得不合并一些其他人.

Edit the .yo-rc.json file in your project folder and re-generate your app using jhipster --with-entities, it will ask you for overwriting some files and maybe you'll have to merge some others.

或者,在编辑.yo-rc.json文件之后,您还可以使用运行升级生成器jhipster upgrade --force,它将更好地处理您的自定义更改.

Alternatively, after having edited the .yo-rc.json file, you could use also run the upgrade generator jhipster upgrade --force, it will handle your custom changes better.

这篇关于创建JHipster应用程序后如何启用翻译支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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