UNPKG

@rero/ng-core

Version:

RERO angular core library.

34 lines (33 loc) 1.14 kB
import { TranslateService } from '@ngx-translate/core'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; /** * To implement your translation, please do it in your application * by overloading this service. * Example: * * import { BucketNameService as CoreBucketNameService } from '@rero/ng-core'; * import { BucketNameService } from './service/bucket-name.service'; * * @NgModule({ * providers: [ * { provide: CoreBucketNameService, useClass: BucketNameService } * ] * }); * */ export declare class BucketNameService { protected translateService: TranslateService; /** * Transform aggregation name * @param aggregationKey - type of aggregation * @param value - value of current aggregation * @returns Observable of string */ transform(aggregationKey: string, value: string): Observable<string>; static ɵfac: i0.ɵɵFactoryDeclaration<BucketNameService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<BucketNameService>; } export interface IBucketNameService { transform(aggregationKey: string, value: string): Observable<string>; }