Lokalized JavaScript — Version 1.0.0
    Preparing search index...

    Function defineLocalizedString

    • Validate, defensively copy, and freeze a programmatic localized string using the same rules as file parsing. Expressions are compiled immediately, so invalid predicates fail at definition time. The result shares no mutable data with the input; keys such as __proto__ are treated as ordinary record members.

      Parameters

      Returns Readonly<LocalizedStringInput>

      if the value is not a valid localized string