Skip to content

Commit

Permalink
[feat]: i18nify renamed to i18nify-js
Browse files Browse the repository at this point in the history
  • Loading branch information
tarun-khanna committed Jan 3, 2024
1 parent 8bbb880 commit b4c3b14
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @razorpay/i18nify
# @razorpay/i18nify-js

## 1.3.0

Expand Down Expand Up @@ -42,7 +42,7 @@

- b0fcee0: [feat]:
1. Introduced StateManager, getters and setters to handle i18n global state
2. added support for sub-module import(@razorpay/i18nify/currency, @razorpay/i18nify/phoneNumber)
2. added support for sub-module import(@razorpay/i18nify-js/currency, @razorpay/i18nify-js/phoneNumber)

## 1.0.3

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Welcome to the command center for your i18n experience! This module serves as th
**setState(newState: Partial`<I18nState>`):** Customize and update your i18n state with ease! Whether you're changing locales or tweaking directions, this function is your ticket to tailor your i18n experience precisely how you want it! 🎨

```
import { setState } from "@razorpay/i18nify/core";
import { setState } from "@razorpay/i18nify-js/core";
// Set a new locale
setState({ locale: 'en-US' });
Expand All @@ -41,7 +41,7 @@ setState({ locale: 'en-US' });
**getState():** Peek into the current i18n state – the active locale, direction, and country settings – at any time, giving you a snapshot of your i18n setup! 📸

```
import { getState } from '@razorpay/i18nify/core';
import { getState } from '@razorpay/i18nify-js/core';
// Get the current state
const currentState = getState();
Expand All @@ -58,7 +58,7 @@ console.log(currentState);
**resetState():** Made a mess? No worries! Hit the reset button with this function. It's the ultimate undo for your i18n adjustments, whisking your settings back to their pristine defaults. Fresh start, anyone? 🆕

```
import { resetState } from "@razorpay/i18nify/core";
import { resetState } from "@razorpay/i18nify-js/core";
// Reset everything!
resetState();
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@razorpay/i18nify",
"version": "1.3.0",
"name": "@razorpay/i18nify-js",
"version": "1.0.0",
"author": "tarun khanna <[email protected]>",
"license": "MIT",
"main": "lib/cjs/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/core/getState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { I18nState } from '../.internal/state/types';
* function to return active i18n state
*
* ===== USAGE =====
* import { getState } from '@razorpay/i18nify';
* import { getState } from '@razorpay/i18nify-js';
*
* console.log(getState())
*
Expand Down
2 changes: 1 addition & 1 deletion src/modules/core/resetState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import state from '../.internal/state';
* Function to reset the active state in i18nify SDK
*
* ===== USAGE =====
* import { resetState } from "@razorpay/i18nify";
* import { resetState } from "@razorpay/i18nify-js";
* resetState()
*
* @param newState data to set in i18nState instance
Expand Down
2 changes: 1 addition & 1 deletion src/modules/core/setState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { I18nState } from '../.internal/state/types';
* Function to set and override the active state in i18nify SDK
*
* ===== USAGE =====
* import { setState } from "@razorpay/i18nify";
* import { setState } from "@razorpay/i18nify-js";
* setState({locale: 'en-US'})
*
* @param newState data to set in i18nState instance
Expand Down

0 comments on commit b4c3b14

Please sign in to comment.