diff --git a/CHANGELOG.md b/CHANGELOG.md index f406524d..2cf39450 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# @razorpay/i18nify +# @razorpay/i18nify-js ## 1.3.0 @@ -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 diff --git a/README.md b/README.md index 35c2ea70..c18f4ca4 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Welcome to the command center for your i18n experience! This module serves as th **setState(newState: Partial``):** 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' }); @@ -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(); @@ -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(); diff --git a/package.json b/package.json index 4b9dbac7..82978bba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@razorpay/i18nify", - "version": "1.3.0", + "name": "@razorpay/i18nify-js", + "version": "1.0.0", "author": "tarun khanna ", "license": "MIT", "main": "lib/cjs/index.js", diff --git a/src/modules/core/getState.ts b/src/modules/core/getState.ts index 8a35b5d2..1dd7b15c 100644 --- a/src/modules/core/getState.ts +++ b/src/modules/core/getState.ts @@ -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()) * diff --git a/src/modules/core/resetState.ts b/src/modules/core/resetState.ts index 597caf5d..dd01258b 100644 --- a/src/modules/core/resetState.ts +++ b/src/modules/core/resetState.ts @@ -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 diff --git a/src/modules/core/setState.ts b/src/modules/core/setState.ts index 498056b4..24abd33d 100644 --- a/src/modules/core/setState.ts +++ b/src/modules/core/setState.ts @@ -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