intl-sup
    Preparing search index...

    Function setUserLocale

    • Initliaze the locale for the library, all other utilities rely on this. It can be called multiple times to change the locale.

      Parameters

      • locale: string

        The local to be set, it's expected to be valid or the function will throw.

      Returns void

      Throws if the local is invalid.

      1.0.0

      Browser support: Chrome 74, Edge 79, Firefox 75, Opera 62, Safari 14, Node 12, Deno 1.8, Bun 1