# @igloo-ui/provider

> Provider allows you to set the locale for all Igloo components that need it. This should be done by wrapping the entire application in the provider. There are also hooks available such as useLocale and useLocalizedStringFormatter.

Latest version **0.2.0** (published 2026-03-24) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @igloo-ui/provider
pnpm add @igloo-ui/provider
yarn add @igloo-ui/provider
bun add @igloo-ui/provider
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2026-03-24 |
| First published | 2024-02-23 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 13.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | Officevibe Inc. |
| Maintainers | infra.admin, alexasselin008 |

## Links

- npm: https://www.npmjs.com/package/@igloo-ui/provider
- Repository: https://github.com/workleap/ov-igloo-ui
- Homepage: https://github.com/workleap/ov-igloo-ui#readme
- Issues: https://github.com/workleap/ov-igloo-ui/issues
- npm.io page: https://npm.io/package/@igloo-ui/provider

## Dependencies (3)

- [react-aria](https://npm.io/package/react-aria.md) ^3.32.1
- [@igloo-ui/tokens](https://npm.io/package/@igloo-ui/tokens.md) ^2.1.0
- [@hopper-ui/tokens](https://npm.io/package/@hopper-ui/tokens.md) ^5.0.0

## Recent versions

- 0.2.0 (latest) — 2026-03-24
- 0.1.6 — 2026-03-11
- 0.1.5 — 2024-09-18
- 0.1.4 — 2024-08-01
- 0.1.3 — 2024-05-17
- 0.1.2 — 2024-05-02
- 0.1.1 — 2024-03-04
- 0.1.0 — 2024-02-23
- 0.0.0 — 2024-02-23

## README

# Provider

Provider allows you to set the locale for all Igloo components that need it. This should be done by wrapping the entire application in the provider. There are also hooks available such as useLocale and useLocalizedStringFormatter.

<ReferenceLinks is="custom" />

## Installation

To install `@igloo-ui/provider` in your project, you will need to run the following command using [npm](https://www.npmjs.com/):

```bash
npm install @igloo-ui/provider
```

If you prefer [Yarn](https://classic.yarnpkg.com/en/), use the following command instead:

```bash
yarn add @igloo-ui/provider
```

## Usage

Then to use the component in your code just import it!

```jsx
import IglooProvider from '@igloo-ui/provider';

<IglooProvider locale="en-US">
    const { locale } = useLocale();

    <div>Here is the current locale: {locale}</div>;
</IglooProvider>
```

---
_Source: https://npm.io/package/@igloo-ui/provider · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
