Skip to content

Commit

Permalink
build(blade): update version (#2013)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
rzpcibot and github-actions[bot] authored Feb 12, 2024
1 parent f104cbf commit 46a5c16
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
23 changes: 0 additions & 23 deletions .changeset/purple-flies-end.md

This file was deleted.

24 changes: 24 additions & 0 deletions packages/blade/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @razorpay/blade

## 11.2.0

### Minor Changes

- f104cbf3: **feat: Added internationalization in Amount component via i18nify.
References**

- **i18nify-js:** https://www.npmjs.com/package/@razorpay/i18nify-js
- **i18nify-react:** https://www.npmjs.com/package/@razorpay/i18nify-react

**What changes ?**

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.

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).

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).

**How to update ?**

1. Install i18nify as dependency `yarn add @razorpay/i18nify-js`
2. _[Optional]_: Install i18nify-react as dependency to manage state effectively `yarn add @razorpay/i18nify-react`
3. Install latest Blade `yarn add @razorpay/blade@latest`

## 11.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/blade/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@razorpay/blade",
"description": "The Design System that powers Razorpay",
"version": "11.1.1",
"version": "11.2.0",
"license": "MIT",
"engines": {
"node": ">=18.12.1"
Expand Down

0 comments on commit 46a5c16

Please sign in to comment.