本文整理汇总了TypeScript中ng-jhipster.JhiLanguageService类的典型用法代码示例。如果您正苦于以下问题:TypeScript JhiLanguageService类的具体用法?TypeScript JhiLanguageService怎么用?TypeScript JhiLanguageService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了JhiLanguageService类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: constructor
constructor(
private jhiLanguageService: JhiLanguageService,
private modalService: NgbModal,
private healthService: JhiHealthService
) {
this.jhiLanguageService.setLocations(['health']);
}
示例2: constructor
constructor(
private jhiLanguageService: JhiLanguageService,
private salesOrderService: SalesOrderService,
public activeModal: NgbActiveModal,
private eventManager: EventManager
) {
this.jhiLanguageService.setLocations(['salesOrder', 'paymentType', 'orderChannel', 'orderType', 'orderStatus']);
}
示例3: constructor
constructor(
private eventManager: EventManager,
private jhiLanguageService: JhiLanguageService,
private shoppingCartService: ShoppingCartService,
private route: ActivatedRoute
) {
this.jhiLanguageService.setLocations(['shoppingCart']);
}
示例4: constructor
constructor(
private jhiLanguageService: JhiLanguageService,
private postService: PostService,
public activeModal: NgbActiveModal,
private eventManager: EventManager
) {
this.jhiLanguageService.setLocations(['post']);
}
示例5: constructor
constructor(
private eventManager: EventManager,
private jhiLanguageService: JhiLanguageService,
private salesOrderService: SalesOrderService,
private route: ActivatedRoute
) {
this.jhiLanguageService.setLocations(['salesOrder', 'paymentType', 'orderChannel', 'orderType', 'orderStatus']);
}
示例6: constructor
constructor(
private jhiLanguageService: JhiLanguageService,
private merchantLogService: MerchantLogService,
public activeModal: NgbActiveModal,
private eventManager: EventManager
) {
this.jhiLanguageService.setLocations(['merchantLog']);
}
示例7: constructor
constructor(
private jhiLanguageService: JhiLanguageService,
private fileHistoryService: FileHistoryService,
public activeModal: NgbActiveModal,
private eventManager: EventManager
) {
this.jhiLanguageService.setLocations(['fileHistory']);
}
示例8: constructor
constructor(
private jhiLanguageService: JhiLanguageService,
private systemNotificationService: SystemNotificationService,
public activeModal: NgbActiveModal,
private eventManager: EventManager
) {
this.jhiLanguageService.setLocations(['systemNotification']);
}
示例9: constructor
constructor(
private eventManager: EventManager,
private jhiLanguageService: JhiLanguageService,
private customerService: CustomerService,
private route: ActivatedRoute
) {
this.jhiLanguageService.setLocations(['customer', 'customerGender']);
}
示例10: resolve
this.principal.identity(true).then(account => {
// After the login the language will be changed to
// the language selected by the user during his registration
if (account !== null) {
this.languageService.changeLanguage(account.langKey);
}
resolve(data);
});