🚀 DAY 2 OF LAUNCH WEEK: Unify Your Security Stack with Socket Basics.Learn more →
Socket
Book a DemoInstallSign in
Socket

@hi18n/react

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hi18n/react

Message internationalization meets immutability and type-safety - runtime for React

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
1.5K
-59.91%
Maintainers
1
Weekly downloads
 
Created
Source

Core library for hi18n

See hi18n's README for general information.

LocaleProvider

Configures the locale context.

<LocaleProvider locale="en">
  <App />
</LocaleProvider>

useI18n

Retrieves a translation helper from a book and the locale from the context.

const { t } = useI18n(book);

LocaleContext

It provides an advanced control over the locale context.

Translate

Translates the message, possible interleaved with React elements.

<Translate book={book} id="example/greeting">
  <a key="link" href="" />
</Translate>

Keywords

intl

FAQs

Package last updated on 08 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts