UNPKG

@ngx-i18nsupport/ngx-i18nsupport-lib

Version:

A Typescript library to work with Angular generated i18n files (xliff, xmb)

20 lines (19 loc) 611 B
/** * Created by martin on 14.05.2017. * A tokenizer for normalized messages. */ export declare const TEXT = "TEXT"; export declare const START_TAG = "START_TAG"; export declare const END_TAG = "END_TAG"; export declare const EMPTY_TAG = "EMPTY_TAG"; export declare const PLACEHOLDER = "PLACEHOLDER"; export declare const ICU_MESSAGE_REF = "ICU_MESSAGE_REF"; export declare const ICU_MESSAGE = "ICU_MESSAGE"; export interface Token { type: string; value: any; } export declare class ParsedMesageTokenizer { private getLexer; tokenize(normalizedMessage: string): Token[]; }