ng-extract-i18n-merge
Version:
Extract and merge i18n xliff translation files for angular projects.
13 lines (12 loc) • 404 B
TypeScript
export declare class LexDist {
private dist;
constructor(dist: number[]);
isNegative(): boolean;
smallerThan(other: LexDist): boolean;
/**
* "b - a"
*/
static fromDifference(a: string, b: string): LexDist;
normalize(): LexDist;
}
export declare function findLexClosestIndex<T>(id: string, units: T[], mapping: (unit: T) => string): [index: number, before: boolean];