Skip to content

Commit a13d937

Browse files
build(blade): update version (#2013)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 9618495 commit a13d937

File tree

3 files changed

+25
-24
lines changed

3 files changed

+25
-24
lines changed

.changeset/purple-flies-end.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/blade/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# @razorpay/blade
22

3+
## 11.2.0
4+
5+
### Minor Changes
6+
7+
- f104cbf3: **feat: Added internationalization in Amount component via i18nify.
8+
References**
9+
10+
- **i18nify-js:** https://www.npmjs.com/package/@razorpay/i18nify-js
11+
- **i18nify-react:** https://www.npmjs.com/package/@razorpay/i18nify-react
12+
13+
**What changes ?**
14+
15+
1. The `<Amount />` component will now automatically format numbers based on the user's browser locale. For example, `<Amount value={123456.789} currency="INR">` will render `₹1,23,456.79` for browsers with the `en-IN` default locale, whereas it will render `₹123,456.79` for browsers with the `en-US` locale.
16+
17+
2. If you want to enable users to change the locale of your page, add the `@razorpay/i18nify-react` package and wrap your app inside the `I18nProvider`. Utilize the `setI18nState` utility to modify the locale. For more details, please refer to the [documentation](https://www.npmjs.com/package/@razorpay/i18nify-react).
18+
19+
3. Additionally, if you prefer to maintain a fixed locale for your page and amount component, enclose your app within `<I18nProvider initData={{locale: 'locale-you-want'}}>..`. For more details, please refer to the [documentation](https://www.npmjs.com/package/@razorpay/i18nify-react).
20+
21+
**How to update ?**
22+
23+
1. Install i18nify as dependency `yarn add @razorpay/i18nify-js`
24+
2. _[Optional]_: Install i18nify-react as dependency to manage state effectively `yarn add @razorpay/i18nify-react`
25+
3. Install latest Blade `yarn add @razorpay/blade@latest`
26+
327
## 11.1.1
428

529
### Patch Changes

packages/blade/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@razorpay/blade",
33
"description": "The Design System that powers Razorpay",
4-
"version": "11.1.1",
4+
"version": "11.2.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18.12.1"

0 commit comments

Comments
 (0)