Function set_locales

  • Create a new Locales instance from a partial locales object.

    Parameters

    • locales: Partial<Record<Locale | "default", string>>

      The locales object to create the instance from.

    Returns Locales