UNPKG

@o3r/localization

Version:

This module provides a runtime dynamic language/translation support and debug tools.

17 lines 555 B
/** Translation Validator */ export type ValidatorType = (str: string) => boolean; /** * Check that the opened parentheses are correctly closed * @param str translation */ export declare function checkParentheses(str: string): boolean; /** * Check if the plural instruction always include an "other" case * @param str translation */ export declare function checkOtherInPlural(str: string): boolean; /** * List of validators to apply to the translations */ export declare const validators: ValidatorType[]; //# sourceMappingURL=validations.d.ts.map