Skip to content

Commit 4a2d97a

Browse files
LylaBbrionmario
andauthored
chore: add 日本語 - ja-JP language support (#165)
* i18n(ja-JP): add Japanese locale #159 * Update ja-JP.ts * Create ja-JP.ts in new file directory ### Summary Add Japanese locale (ja-JP) translations. ### Related Issue Fixes #161 e2e: N/A (not applicable for locale addition) Manual test: Checked locally, Japanese labels render correctly UX/UI: N/A Documentation: N/A Unit/Integration tests: N/A Security: Confirmed, no secrets committed ----------original message------------------ ### Purpose <!-- Describe the problem, feature, improvement or the change introduces by the PR briefly. Add screenshots/GIFs if UI/UX changes are introduced. --> ### Related Issues - ### Related PRs - ### Checklist - [ ] e2e cypress tests locally verified. - [ ] Manual test round performed and verified. - [ ] UX/UI review done on the final implementation. - [ ] Documentation provided. (Add links if there are any) - [ ] Unit tests provided. (Add links if there are any) - [ ] Integration tests provided. (Add links if there are any) ### Security checks - [ ] Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? - [ ] Ran FindSecurityBugs plugin and verified report? - [ ] Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? * Delete packages/i18n/src/translations/ja-JP.ts * Create ja-JP.tr * Update ja-JP.tr * Rename ja-JP.tr to ja-JP.ts * Delete packages/i18n/src/translations/ja-JP.ts * Create breezy-masks-greet.md * Create ja-JP.ts * Delete packages/javascript/src/i18n/ja-JP.ts * fix: fix typescheck --------- Co-authored-by: Brion Mario <[email protected]>
1 parent a9b40f1 commit 4a2d97a

File tree

2 files changed

+164
-0
lines changed

2 files changed

+164
-0
lines changed

.changeset/breezy-masks-greet.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@asgardeo/i18n': minor
3+
---
4+
5+
chore: add 'Japanese - ja-JP' language support
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
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+
/* eslint-disable @typescript-eslint/naming-convention */
21+
22+
import {I18nTranslations, I18nMetadata, I18nBundle} from '../models/i18n';
23+
24+
const translations: I18nTranslations = {
25+
/* |---------------------------------------------------------------| */
26+
/* | Elements | */
27+
/* |---------------------------------------------------------------| */
28+
29+
/* Buttons */
30+
'elements.buttons.signIn': 'ログイン',
31+
'elements.buttons.signOut': 'ログアウト',
32+
'elements.buttons.signUp': 'サインアップ',
33+
'elements.buttons.facebook': 'Facebookで続行',
34+
'elements.buttons.google': 'Googleで続行',
35+
'elements.buttons.github': 'GitHubで続行',
36+
'elements.buttons.microsoft': 'Microsoftで続行',
37+
'elements.buttons.linkedin': 'LinkedInで続行',
38+
'elements.buttons.ethereum': 'Ethereumでサインイン',
39+
'elements.buttons.multi.option': '{connection}で続行',
40+
'elements.buttons.social': '{connection}で続行',
41+
42+
/* Fields */
43+
'elements.fields.placeholder': '{field}を入力してください',
44+
45+
/* |---------------------------------------------------------------| */
46+
/* | Widgets | */
47+
/* |---------------------------------------------------------------| */
48+
49+
/* Base Sign In */
50+
'signin.title': 'ログイン',
51+
'signin.subtitle': '続行するには認証情報を入力してください。',
52+
53+
/* Base Sign Up */
54+
'signup.title': 'サインアップ',
55+
'signup.subtitle': 'はじめるには新しいアカウントを作成してください。',
56+
57+
/* Email OTP */
58+
'email.otp.title': 'OTP認証',
59+
'email.otp.subtitle': 'メールに送信されたコードを入力してください。',
60+
'email.otp.submit.button': '続行',
61+
62+
/* Identifier First */
63+
'identifier.first.title': 'ログイン',
64+
'identifier.first.subtitle': 'ユーザー名またはメールアドレスを入力してください。',
65+
'identifier.first.submit.button': '続行',
66+
67+
/* SMS OTP */
68+
'sms.otp.title': 'OTP認証',
69+
'sms.otp.subtitle': '電話番号に送信されたコードを入力してください。',
70+
'sms.otp.submit.button': '続行',
71+
72+
/* TOTP */
73+
'totp.title': '本人確認',
74+
'totp.subtitle': '認証アプリのコードを入力してください。',
75+
'totp.submit.button': '続行',
76+
77+
/* Username Password */
78+
'username.password.submit.button': '続行',
79+
'username.password.title': 'ログイン',
80+
'username.password.subtitle': 'ユーザー名とパスワードを入力してください。',
81+
82+
/* |---------------------------------------------------------------| */
83+
/* | User Profile | */
84+
/* |---------------------------------------------------------------| */
85+
86+
'user.profile.title': 'プロフィール',
87+
'user.profile.update.generic.error': 'プロフィール更新中にエラーが発生しました。もう一度お試しください。',
88+
89+
/* |---------------------------------------------------------------| */
90+
/* | Organization Switcher | */
91+
/* |---------------------------------------------------------------| */
92+
93+
'organization.switcher.select.organization': '組織を選択',
94+
'organization.switcher.switch.organization': '組織を切り替え',
95+
'organization.switcher.loading.organizations': '組織を読み込み中…',
96+
'organization.switcher.members': 'メンバー',
97+
'organization.switcher.member': 'メンバー',
98+
'organization.switcher.create.organization': '組織を作成',
99+
'organization.switcher.manage.organizations': '組織を管理',
100+
'organization.switcher.manage.button': '管理',
101+
'organization.switcher.organizations.title': '組織',
102+
'organization.switcher.switch.button': '切り替え',
103+
'organization.switcher.no.access': 'アクセス権がありません',
104+
'organization.switcher.status.label': 'ステータス:',
105+
'organization.switcher.showing.count': '全{total}件中{showing}件を表示',
106+
'organization.switcher.refresh.button': '更新',
107+
'organization.switcher.load.more': 'さらに読み込む',
108+
'organization.switcher.loading.more': '読み込み中…',
109+
'organization.switcher.no.organizations': '組織が見つかりません',
110+
'organization.switcher.error.prefix': 'エラー:',
111+
'organization.profile.title': '組織プロファイル',
112+
'organization.profile.loading': '組織を読み込み中…',
113+
'organization.profile.error': '組織の読み込みに失敗しました',
114+
115+
'organization.create.title': '組織の作成',
116+
'organization.create.name.label': '組織名',
117+
'organization.create.name.placeholder': '組織名を入力',
118+
'organization.create.handle.label': '組織ハンドル',
119+
'organization.create.handle.placeholder': 'my-organization',
120+
'organization.create.description.label': '説明',
121+
'organization.create.description.placeholder': '組織の説明を入力',
122+
'organization.create.button': '組織を作成',
123+
'organization.create.creating': '作成中…',
124+
'organization.create.cancel': 'キャンセル',
125+
126+
/* |---------------------------------------------------------------| */
127+
/* | Messages | */
128+
/* |---------------------------------------------------------------| */
129+
130+
'messages.loading': '読み込み中…',
131+
132+
/* |---------------------------------------------------------------| */
133+
/* | Errors | */
134+
/* |---------------------------------------------------------------| */
135+
136+
'errors.title': 'エラー',
137+
'errors.sign.in.initialization': '初期化中にエラーが発生しました。後でもう一度お試しください。',
138+
'errors.sign.in.flow.failure': 'サインイン処理中にエラーが発生しました。後でもう一度お試しください。',
139+
'errors.sign.in.flow.completion.failure':
140+
'サインイン処理の完了中にエラーが発生しました。後でもう一度お試しください。',
141+
'errors.sign.in.flow.passkeys.failure': 'パスキーでのサインイン中にエラーが発生しました。後でもう一度お試しください。',
142+
'errors.sign.in.flow.passkeys.completion.failure':
143+
'パスキーによるサインイン完了中にエラーが発生しました。後でもう一度お試しください。',
144+
};
145+
146+
const metadata: I18nMetadata = {
147+
localeCode: 'ja-JP',
148+
countryCode: 'JP',
149+
languageCode: 'ja',
150+
displayName: '日本語 (日本)',
151+
direction: 'ltr',
152+
};
153+
154+
const ja_JP: I18nBundle = {
155+
metadata,
156+
translations,
157+
};
158+
159+
export default ja_JP;

0 commit comments

Comments
 (0)