Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 7, 2024 via pnpm

react-intl 6.4.7

Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.
Package summary
Share
0
issues
3
licenses
16
MIT
3
BSD-3-Clause
1
0BSD
Package created
19 Jun 2014
Version published
18 Sep 2023
Maintainers
8
Total deps
20
Direct deps
11
License
BSD-3-Clause

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
16 Packages, Including:
@formatjs/ecma402-abstract@1.17.2
@formatjs/fast-memoize@2.2.0
@formatjs/icu-messageformat-parser@2.6.2
@formatjs/icu-skeleton-parser@1.6.2
@formatjs/intl-displaynames@6.5.2
@formatjs/intl-listformat@7.4.2
@formatjs/intl-localematcher@0.4.2
@formatjs/intl@2.9.3
@types/hoist-non-react-statics@3.3.5
@types/prop-types@15.7.12
@types/react@18.3.1
csstype@3.1.3
js-tokens@4.0.0
loose-envify@1.4.0
react-is@16.13.1
react@18.3.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
hoist-non-react-statics@3.3.2
intl-messageformat@10.5.3
react-intl@6.4.7

BSD Zero Clause License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
include-copyright
include-license
include-original
Cannot
hold-liable
Must
1 Packages, Including:
tslib@2.6.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

11
All Dependencies CSV
β“˜ This is a list of react-intl 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@formatjs/ecma402-abstract1.17.247.92 kBMIT
prod
@formatjs/icu-messageformat-parser2.6.235.85 kBMIT
prod
@formatjs/intl-displaynames6.5.26.63 MBMIT
prod
@formatjs/intl-listformat7.4.252.16 kBMIT
prod
@formatjs/intl2.9.318.02 kBMIT
prod
@types/hoist-non-react-statics3.3.52.04 kBMIT
prod
@types/react18.3.1427.28 kBMIT
prod
hoist-non-react-statics3.3.29.83 kBBSD-3-Clause
prod
intl-messageformat10.5.340.79 kBBSD-3-Clause
prod
react18.3.1310.65 kBMIT
prod peer
tslib2.6.215.59 kB0BSD
prod

Visualizations

Frequently Asked Questions

What does react-intl do?

React-Intl is a highly effective library that developers employ to internationalize their React applications. This library, steeped with flexibility and functionality, offers React components along with an API that can format dates, numbers, and strings. Besides these basic tasks, it can handle pluralization and tackle translations, making it a versatile tool to cater to diverse audience demographics around the globe and ensuring a localized user experience.

How do you use react-intl?

To leverage the powerful functionality of React-Intl, you need to install it in your project and integrate it in the right places. Here's an example of how to use it:

First, you need to install the package. Execute the following command in your terminal:

npm install react-intl

Once the package is installed, you can import it in your React component:

import { IntlProvider, FormattedMessage } from 'react-intl';

You can use IntlProvider component to setup the i18n configuration in your app. Use FormattedMessage to display translated text.

<IntlProvider locale="en" messages={messages}>
  <FormattedMessage id="hello" />
</IntlProvider>

The messages prop in IntlProvider is an object, where each key-value pair represents the id of the text and its translation, respectively. The id prop in FormattedMessage matches one of the keys in the messages prop of IntlProvider.

let messages = {
  hello: 'Hello world'
}

In this case, the FormattedMessage component will display "Hello world".

Where are the react-intl docs?

Complete and detailed documentation of the React-Intl package can be found on the official FormatJS website, specifically under the "Getting Started" section. Here's the link to dive deeper and get your hands dirty with every nuance the React-Intl library has to offer. The documentation provides clear and concise instructions to integrate, use, and understand the package efficiently, ensuring you can maximise the potential of your globally-oriented React applications.