formatjs--react-intl
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.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 13
- Forks
- 2
01 前言 Front Matter
- 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
03 SKILL.md 正文
FormatJS / react-intl là monorepo i18n chuẩn cho React. Format messages, dates, numbers, currencies theo locale.
Install
npm install react-intl
Basic setup
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
// 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
# 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
04 同仓库更多 Skills
openai--sentry--sentry
Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.
ito-basket-compare
Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.
implementing-network-traffic-baselining
Build network traffic baselines from NetFlow/IPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly/daily traffic pattern profiling
detecting-evasion-techniques-in-endpoint-logs
Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.
implementing-microsegmentation-with-guardicore
Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.
ramdisk-tmpfs-patterns
暂无简介