Files
ngx-translate-extract/src/post-processors/purge-obsolete-keys.post-processor.ts
2019-09-18 14:16:47 +02:00

11 lines
448 B
TypeScript

import { TranslationCollection } from '../utils/translation.collection';
import { PostProcessorInterface } from './post-processor.interface';
export class PurgeObsoleteKeysPostProcessor implements PostProcessorInterface {
public name: string = 'PurgeObsoleteKeys';
public process(draft: TranslationCollection, extracted: TranslationCollection, existing: TranslationCollection): TranslationCollection {
return draft.intersect(extracted);
}
}