@ngx-translate/core
Version:
22 lines (17 loc) • 608 B
text/typescript
import {Injectable} from "@angular/core";
export abstract class TranslateCompiler {
abstract compile(value: string, lang: string): string | Function;
abstract compileTranslations(translations: any, lang: string): any;
}
/**
* This compiler is just a placeholder that does nothing, in case you don't need a compiler at all
*/
@Injectable()
export class TranslateFakeCompiler extends TranslateCompiler {
compile(value: string, lang: string): string | Function {
return value;
}
compileTranslations(translations: any, lang: string): any {
return translations;
}
}