Skip to content

Commit f88ed12

Browse files
committed
Merge remote-tracking branch 'upstream/main' into refactor-i18n
2 parents 283264a + 3b29706 commit f88ed12

File tree

22 files changed

+299
-7
lines changed

22 files changed

+299
-7
lines changed

packages/browser/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @asgardeo/browser
22

3+
## 0.1.18
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
[[`0c34416`](https://github.com/asgardeo/javascript/commit/0c3441609a7de33d336b96e1acbe2443e9ea4132)]:
9+
- @asgardeo/javascript@0.1.17
10+
311
## 0.1.17
412

513
### Patch Changes

packages/browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@asgardeo/browser",
3-
"version": "0.1.17",
3+
"version": "0.1.18",
44
"description": "Browser-specific implementation of Asgardeo JavaScript SDK.",
55
"keywords": [
66
"asgardeo",

packages/express/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @asgardeo/express
22

3+
## 0.0.18
4+
5+
### Patch Changes
6+
7+
- Updated dependencies []:
8+
- @asgardeo/node@0.0.19
9+
310
## 0.0.17
411

512
### Patch Changes

packages/express/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@asgardeo/express",
3-
"version": "0.0.17",
3+
"version": "0.0.18",
44
"description": "Express.js implementation of Asgardeo JavaScript SDK.",
55
"keywords": [
66
"asgardeo",
Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
/**
2+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3+
*
4+
* WSO2 LLC. licenses this file to you under the Apache License,
5+
* Version 2.0 (the "License"); you may not use this file except
6+
* in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing,
12+
* software distributed under the License is distributed on an
13+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
* KIND, either express or implied. See the License for the
15+
* specific language governing permissions and limitations
16+
* under the License.
17+
*/
18+
19+
/* eslint-disable sort-keys */
20+
21+
import {I18nTranslations, I18nMetadata, I18nBundle} from '../models/i18n';
22+
23+
const translations: I18nTranslations = {
24+
/* |---------------------------------------------------------------| */
25+
/* | Elements | */
26+
/* |---------------------------------------------------------------| */
27+
28+
/* Buttons */
29+
'elements.buttons.signIn': 'साइन इन',
30+
'elements.buttons.signOut': 'साइन आउट',
31+
'elements.buttons.signUp': 'साइन अप',
32+
'elements.buttons.facebook': 'Facebook के साथ जारी रखें',
33+
'elements.buttons.google': 'Google के साथ जारी रखें',
34+
'elements.buttons.github': 'GitHub के साथ जारी रखें',
35+
'elements.buttons.microsoft': 'Microsoft के साथ जारी रखें',
36+
'elements.buttons.linkedin': 'LinkedIn के साथ जारी रखें',
37+
'elements.buttons.ethereum': 'Ethereum के साथ साइन इन करें',
38+
'elements.buttons.multi.option': '{connection} के साथ जारी रखें',
39+
'elements.buttons.social': '{connection} के साथ जारी रखें',
40+
41+
/* Fields */
42+
'elements.fields.placeholder': '{field} दर्ज करें',
43+
44+
/* |---------------------------------------------------------------| */
45+
/* | Widgets | */
46+
/* |---------------------------------------------------------------| */
47+
48+
/* Base Sign In */
49+
'signin.title': 'साइन इन',
50+
'signin.subtitle': 'जारी रखने के लिए अपनी प्रमाणिक जानकारी दर्ज करें।',
51+
52+
/* Base Sign Up */
53+
'signup.title': 'साइन अप',
54+
'signup.subtitle': 'शुरू करने के लिए नया खाता बनाएं।',
55+
56+
/* Email OTP */
57+
'email.otp.title': 'OTP सत्यापन',
58+
'email.otp.subtitle': 'अपनी ईमेल पर भेजा गया कोड दर्ज करें।',
59+
'email.otp.submit.button': 'जारी रखें',
60+
61+
/* Identifier First */
62+
'identifier.first.title': 'साइन इन',
63+
'identifier.first.subtitle': 'अपना उपयोगकर्ता नाम या ईमेल दर्ज करें।',
64+
'identifier.first.submit.button': 'जारी रखें',
65+
66+
/* SMS OTP */
67+
'sms.otp.title': 'OTP सत्यापन',
68+
'sms.otp.subtitle': 'अपने फ़ोन नंबर पर भेजा गया कोड दर्ज करें।',
69+
'sms.otp.submit.button': 'जारी रखें',
70+
71+
/* TOTP */
72+
'totp.title': 'अपनी पहचान सत्यापित करें',
73+
'totp.subtitle': 'अपने ऑथेंटिकेटर ऐप से कोड दर्ज करें।',
74+
'totp.submit.button': 'जारी रखें',
75+
76+
/* Username Password */
77+
'username.password.submit.button': 'जारी रखें',
78+
'username.password.title': 'साइन इन',
79+
'username.password.subtitle': 'अपना उपयोगकर्ता नाम और पासवर्ड दर्ज करें।',
80+
81+
/* |---------------------------------------------------------------| */
82+
/* | User Profile | */
83+
/* |---------------------------------------------------------------| */
84+
85+
'user.profile.title': 'प्रोफ़ाइल',
86+
'user.profile.update.generic.error': 'प्रोफ़ाइल अपडेट करते समय त्रुटि हुई। कृपया पुनः प्रयास करें।',
87+
88+
/* |---------------------------------------------------------------| */
89+
/* | Organization Switcher | */
90+
/* |---------------------------------------------------------------| */
91+
92+
'organization.switcher.select.organization': 'संगठन चुनें',
93+
'organization.switcher.switch.organization': 'संगठन बदलें',
94+
'organization.switcher.loading.organizations': 'संगठन लोड हो रहे हैं...',
95+
'organization.switcher.members': 'सदस्य',
96+
'organization.switcher.member': 'सदस्य',
97+
'organization.switcher.create.organization': 'संगठन बनाएं',
98+
'organization.switcher.manage.organizations': 'संगठनों का प्रबंधन करें',
99+
'organization.switcher.manage.button': 'प्रबंधित करें',
100+
'organization.switcher.organizations.title': 'संगठन',
101+
'organization.switcher.switch.button': 'बदलें',
102+
'organization.switcher.no.access': 'कोई पहुँच नहीं',
103+
'organization.switcher.status.label': 'स्थिति:',
104+
'organization.switcher.showing.count': '{total} में से {showing} संगठन दिखा रहे हैं',
105+
'organization.switcher.refresh.button': 'रिफ्रेश',
106+
'organization.switcher.load.more': 'और संगठन लोड करें',
107+
'organization.switcher.loading.more': 'लोड हो रहा है...',
108+
'organization.switcher.no.organizations': 'कोई संगठन नहीं मिला',
109+
'organization.switcher.error.prefix': 'त्रुटि:',
110+
'organization.profile.title': 'संगठन प्रोफ़ाइल',
111+
'organization.profile.loading': 'संगठन लोड हो रहा है...',
112+
'organization.profile.error': 'संगठन लोड करने में विफल',
113+
114+
'organization.create.title': 'संगठन बनाएं',
115+
'organization.create.name.label': 'संगठन का नाम',
116+
'organization.create.name.placeholder': 'संगठन का नाम दर्ज करें',
117+
'organization.create.handle.label': 'संगठन हैंडल',
118+
'organization.create.handle.placeholder': 'my-organization',
119+
'organization.create.description.label': 'विवरण',
120+
'organization.create.description.placeholder': 'संगठन विवरण दर्ज करें',
121+
'organization.create.button': 'संगठन बनाएं',
122+
'organization.create.creating': 'बनाया जा रहा है...',
123+
'organization.create.cancel': 'रद्द करें',
124+
125+
/* |---------------------------------------------------------------| */
126+
/* | Messages | */
127+
/* |---------------------------------------------------------------| */
128+
129+
'messages.loading': 'लोड हो रहा है...',
130+
131+
/* |---------------------------------------------------------------| */
132+
/* | Errors | */
133+
/* |---------------------------------------------------------------| */
134+
135+
'errors.title': 'त्रुटि',
136+
'errors.sign.in.initialization': 'इनिशियलाइज़ेशन में त्रुटि हुई। कृपया बाद में पुनः प्रयास करें।',
137+
'errors.sign.in.flow.failure': 'साइन-इन प्रक्रिया में त्रुटि। कृपया बाद में पुनः प्रयास करें।',
138+
'errors.sign.in.flow.completion.failure': 'साइन-इन प्रक्रिया पूरी करते समय त्रुटि। कृपया बाद में पुनः प्रयास करें।',
139+
'errors.sign.in.flow.passkeys.failure': 'पासकीज़ के साथ साइन-इन करते समय त्रुटि।',
140+
'errors.sign.in.flow.passkeys.completion.failure': 'पासकीज़ साइन-इन पूरी करते समय त्रुटि।',
141+
};
142+
143+
const metadata: I18nMetadata = {
144+
localeCode: 'hi-IN',
145+
countryCode: 'IN',
146+
languageCode: 'hi',
147+
displayName: 'हिन्दी (भारत)',
148+
direction: 'ltr',
149+
};
150+
151+
const hi_IN: I18nBundle = {
152+
metadata,
153+
translations,
154+
};
155+
156+
export default hi_IN;

packages/javascript/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @asgardeo/javascript
22

3+
## 0.1.17
4+
5+
### Patch Changes
6+
7+
- [#181](https://github.com/asgardeo/javascript/pull/181)
8+
[`0c34416`](https://github.com/asgardeo/javascript/commit/0c3441609a7de33d336b96e1acbe2443e9ea4132) Thanks
9+
[@brionmario](https://github.com/brionmario)! - Expose `reInitialize` from `@asgardeo/react` & `@asgardeo/nextjs`
10+
311
## 0.1.16
412

513
### Patch Changes

packages/javascript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@asgardeo/javascript",
3-
"version": "0.1.16",
3+
"version": "0.1.17",
44
"description": "Framework agnostic JavaScript SDK for Asgardeo.",
55
"keywords": [
66
"asgardeo",

packages/javascript/src/AsgardeoJavaScriptClient.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ abstract class AsgardeoJavaScriptClient<T = Config> implements AsgardeoClient<T>
3737

3838
abstract initialize(config: T, storage?: Storage): Promise<boolean>;
3939

40+
abstract reInitialize(config: Partial<T>): Promise<boolean>;
41+
4042
abstract getUser(options?: any): Promise<User>;
4143

4244
abstract getAllOrganizations(options?: any, sessionId?: string): Promise<AllOrganizationsApiResponse>;

packages/javascript/src/models/client.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,17 @@ export interface AsgardeoClient<T> {
9797
*/
9898
initialize(config: T, storage?: Storage): Promise<boolean>;
9999

100+
/**
101+
* Re-initializes the client with a new configuration.
102+
*
103+
* @remarks
104+
* This can be partial configuration to update only specific fields.
105+
*
106+
* @param config - New configuration to re-initialize the client with.
107+
* @returns Promise resolving to boolean indicating success.
108+
*/
109+
reInitialize(config: Partial<T>): Promise<boolean>;
110+
100111
/**
101112
* Checks if the client is currently loading.
102113
* This can be used to determine if the client is in the process of initializing or fetching user data.

packages/nextjs/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# @asgardeo/nextjs
22

3+
## 0.1.26
4+
5+
### Patch Changes
6+
7+
- [#181](https://github.com/asgardeo/javascript/pull/181)
8+
[`0c34416`](https://github.com/asgardeo/javascript/commit/0c3441609a7de33d336b96e1acbe2443e9ea4132) Thanks
9+
[@brionmario](https://github.com/brionmario)! - Expose `reInitialize` from `@asgardeo/react` & `@asgardeo/nextjs`
10+
11+
- Updated dependencies
12+
[[`0c34416`](https://github.com/asgardeo/javascript/commit/0c3441609a7de33d336b96e1acbe2443e9ea4132)]:
13+
- @asgardeo/react@0.5.25
14+
- @asgardeo/node@0.0.19
15+
316
## 0.1.25
417

518
### Patch Changes

0 commit comments

Comments
 (0)