Skip to content
Back to skills

Formatjs React Intl

ASecurity

i18n cho React apps — react-intl, FormatJS. Dùng khi implement đa ngôn ngữ, format số/ngày/tiền tệ chuẩn theo locale.

  • 10 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
ai-agentsbashreactgit

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 9, 2026

npx -y skills add yanacuti1121/Yana-AI --skill formatjs--react-intl --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Formatjs React Intl?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Formatjs  React Intl
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yanacuti1121-formatjs-react-intl/badge)](https://www.skillsdirectory.com/skills/yanacuti1121-formatjs-react-intl)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: formatjs--react-intl
description: "i18n cho React apps — react-intl, FormatJS. Dùng khi implement đa ngôn ngữ, format số/ngày/tiền tệ chuẩn theo locale."
allowed-tools: Bash, Read, Write
user-invocable: true
---

FormatJS / react-intl là monorepo i18n chuẩn cho React. Format messages, dates, numbers, currencies theo locale.

## Install

```bash
npm install react-intl
```

## Basic setup

```tsx
import { IntlProvider, FormattedMessage } from 'react-intl'

const messages = {
  'app.greeting': 'Hello, {name}!',
}

<IntlProvider locale="en" messages={messages}>
  <FormattedMessage id="app.greeting" values={{ name: 'Tâm' }} />
</IntlProvider>
```

## Format patterns

```tsx
// Number / currency
<FormattedNumber value={1000} style="currency" currency="VND" />
// → ₫1.000

// Date
<FormattedDate value={new Date()} year="numeric" month="long" day="2-digit" />

// Relative time
<FormattedRelativeTime value={-1} unit="day" />
// → yesterday
```

## Extract & compile messages

```bash
# Extract from source
npx formatjs extract 'src/**/*.tsx' --out-file messages/en.json

# Compile for production
npx formatjs compile messages/vi.json --out-file compiled/vi.json
```

## Source

https://github.com/formatjs/formatjs · ⭐14.7K

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.