tiger_lib::datatype

Function validate_custom

Source
fn validate_custom(
    token: &Token,
    data: &Everything,
    scopes: Scopes,
    lang: Option<Language>,
)
Expand description

Internal function for validating a reference to a custom localization.

  • token: The name of the localization.
  • scopes: The scope type of the value being passed in to the custom localization.
  • lang: The language being validated, can be None when not applicable (such as in gui files). Many custom localizations are only meant for one language, and the keys they use only need to exist in that language.