How to enable translatation support after creating JHipster Application

谁说我不能喝 提交于 2019-12-24 12:51:49

问题


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?

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.


回答1:


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.

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.



来源:https://stackoverflow.com/questions/33135986/how-to-enable-translatation-support-after-creating-jhipster-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!