本文整理匯總了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);
});