# @primeuix/locale

> Locale utilities for PrimeUI Libraries

Latest version **0.1.0** (published 2026-07-15) · SEE LICENSE IN LICENSE.md license · 0 weekly downloads

## Install

```sh
npm install @primeuix/locale
pnpm add @primeuix/locale
yarn add @primeuix/locale
bun add @primeuix/locale
```

## Health

**Score 70/100 (B)** — status: active.

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2026-07-15 |
| First published | 2024-10-30 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE.md |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=12.11.0 |
| Dependencies | 1 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | PrimeTek Informatics |
| Maintainers | mert.sincan, cagatay.civici |
| Keywords | locale, internationalization, i18n, translation, localization, utilities, primeng, primereact, primevue, primeuix |

## Links

- npm: https://www.npmjs.com/package/@primeuix/locale
- Issues: https://support.primeui.dev
- npm.io page: https://npm.io/package/@primeuix/locale

## Dependencies (1)

- [@primeuix/utils](https://npm.io/package/@primeuix/utils.md) ^0.8.0

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2026-07-15
- 0.1.0-rc.2 — 2026-07-15
- 0.1.0-rc.1 — 2026-07-07
- 0.0.2 — 2025-06-18
- 0.0.1 — 2024-10-30

## README

# PrimeUIX Locale

Shared locale and i18n layer for PrimeUI libraries. Manages language registration, switching, and translation lookup through a singleton instance so locale state is consistent across PrimeVue, PrimeReact, and PrimeNG within the same application.

Locales are deep-merged against a fallback language, so partial translations are safe — only the keys that differ need to be provided.

```ts
import Locale from '@primeuix/locale';

Locale.init({
    lang: 'de',
    fallback: 'en',
    locales: { en: { accept: 'Accept' }, de: { accept: 'Akzeptieren' } }
});

Locale.use('de');
Locale.get(); // { accept: 'Akzeptieren' }
```

Language changes emit a `locale:change` event via `LocaleService`, which Prime framework libraries listen to in order to trigger re-renders.

## License

Licensed under the [PrimeUI License](https://primeui.dev/licenses) - Copyright (c) [PrimeTek Informatics](https://www.primetek.com.tr)

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