Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: rename package @razorpay/i18nify to @razorpay/i18nify-js #50

Merged
merged 1 commit into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading