更改jhipster中的默认语言

时间:2016-02-21 11:22:22

标签: angularjs phantomjs karma-runner jhipster angular-translate

我使用JHipster 2.27.0

我通过更改首选语言行在dev文件中设置语言,例如prod将语言更改为法语。

此解决方案在运行中运行,我有任何javascript测试(PhantomJS 1.9.8 (Windows 7 0.0.0) Controller Tests ActivationController calls Auth.activateAccount with the key from stateParams FAILED Error: Plural Function not found for locale: fr at MessageFormat (G:/workspace/myapp270/src/main/webapp/bower_components/messageformat/messageformat.js:9) at G:/workspace/myapp270/src/main/webapp/bower_components/angular-translate-interpolation-messageformat/angular-translate-interpolation-messageformat.js:9 at interpolationFactoryAdder (G:/workspace/myapp270/src/main/webapp/bower_components/angular-translate/angular-translate.js:9) at forEach (G:/workspace/myapp270/src/main/webapp/bower_components/angular/angular.js:9) at G:/workspace/myapp270/src/main/webapp/bower_components/angular-translate/angular-translate.js:9 at invoke (G:/workspace/myapp270/src/main/webapp/bower_components/angular/angular.js:9) at G:/workspace/myapp270/src/main/webapp/bower_components/angular/angular.js:9 at getService (G:/workspace/myapp270/src/main/webapp/bower_components/angular/angular.js:9) at invoke (G:/workspace/myapp270/src/main/webapp/bower_components/angular/angular.js:9) at G:/workspace/myapp270/src/main/webapp/bower_components/angular/angular.js:9 at forEach (G:/workspace/myapp270/src/main/webapp/bower_components/angular/angular.js:9) at createInjector (G:/workspace/myapp270/src/main/webapp/bower_components/angular/angular.js:9) at workFn (G:/workspace/myapp270/src/main/webapp/bower_components/angular-mocks/angular-mocks.js:9) at G:/workspace/myapp270/src/main/webapp/bower_components/angular-mocks/angular-mocks.js:9 at mockApiAccountCall (G:/workspace/myapp270/src/test/javascript/spec/helpers/httpBackend.js:9) )确定但我有任何javascript测试(class A { private: void Inidialise() { /* common initialisation here */ } public: A() { Initialise(); /* specific initialisation for A() here */ } A(bool a) { Initialise(); /* specific initialisation for A(bool) here */ } A(int b) { Initialise(); /* specific initialisation for A(int) here */ } /* etcetera */ } )KO。

{{1}}

您知道在测试中设置默认语言的位置吗?

0 个答案:

没有答案