Function validate_translation

Source
pub fn validate_translation(
    config: &LanguageConfig,
    base: &String,
    case: &String,
    translation: &String,
) -> ValidationResult
Expand description

Validate whether a translation is valid for the given base string.

@param config The language configuration to validate against. @param base The base string to validate against. @param case The case of the translation. Use “default” for the default case. @param translation The translation to validate.

@returns A normalized form of the translation, and a list of error messages, if the translation is invalid.