Lokalized JavaScript — Version 1.0.0
    Preparing search index...

    Function forLocale

    • Create per-call options for an explicit locale.

      strings.get(key, undefined, forLocale("fr-CA"));
      

      The tag is normalized immediately; malformed tags throw here. Matching and catalog coverage are checked when an instance consumes the options, so the same options object can be reused with different instances.

      Parameters

      • locale: string

      Returns Readonly<{ locale: string }>

      if the tag is not a well-formed IETF BCP 47 locale