我已经在azure中上传了我的angular 4 web应用程序。在我的本地iis部署中没有问题,但在azure中,我有一个错误,缺少locale-el.json和locale-en.json文件。文件没有丢失!!.我尝试使用ftp和github部署我的应用程序,但没有成功。有没有人在过去有过类似的问题,或者对此有所了解?
下面是我声明翻译的代码
export class SharedModule { constructor(public locale: LocaleService, public translation: TranslationService) {
this.locale.addConfiguration()
.addLanguages(['en', 'el'])
.setCookieExpiration(30)
.defineLanguage('el');
this.translation.addConfiguration()
.addProvider('./languages/locale-');
this.translation.init();
发布于 2017-11-23 18:48:05
https://stackoverflow.com/questions/47452889
复制相似问题