-
Notifications
You must be signed in to change notification settings - Fork 33
chore: add 日本語 - ja-JP language support #165
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
Open
LylaB
wants to merge
12
commits into
asgardeo:main
Choose a base branch
from
LylaB:patch-1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+164
−0
Open
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e21dccf
i18n(ja-JP): add Japanese locale #159
LylaB c7805bc
Update ja-JP.ts
LylaB d6ab4e5
Merge branch 'asgardeo:main' into patch-1
LylaB 6e9ba28
Create ja-JP.ts in new file directory
LylaB 091ca0c
Delete packages/i18n/src/translations/ja-JP.ts
LylaB 072d682
Create ja-JP.tr
LylaB 65ae98a
Update ja-JP.tr
LylaB bc7670a
Rename ja-JP.tr to ja-JP.ts
LylaB 2adf97b
Delete packages/i18n/src/translations/ja-JP.ts
LylaB 234b11a
Create breezy-masks-greet.md
LylaB 61d30b6
Create ja-JP.ts
LylaB ea6b108
Delete packages/javascript/src/i18n/ja-JP.ts
LylaB File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
/** | ||
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com). | ||
* | ||
* WSO2 LLC. licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
/* eslint-disable sort-keys */ | ||
|
||
import { I18nTranslations, I18nMetadata, I18nBundle } from "../models/i18n"; | ||
|
||
const translations: I18nTranslations = { | ||
/* |---------------------------------------------------------------| */ | ||
/* | Elements | */ | ||
/* |---------------------------------------------------------------| */ | ||
|
||
/* Buttons */ | ||
"elements.buttons.signIn": "ログイン", | ||
"elements.buttons.signOut": "ログアウト", | ||
"elements.buttons.signUp": "サインアップ", | ||
"elements.buttons.facebook": "Facebookで続行", | ||
"elements.buttons.google": "Googleで続行", | ||
"elements.buttons.github": "GitHubで続行", | ||
"elements.buttons.microsoft": "Microsoftで続行", | ||
"elements.buttons.linkedin": "LinkedInで続行", | ||
"elements.buttons.ethereum": "Ethereumでサインイン", | ||
"elements.buttons.multi.option": "{connection}で続行", | ||
"elements.buttons.social": "{connection}で続行", | ||
|
||
/* Fields */ | ||
"elements.fields.placeholder": "{field}を入力してください", | ||
|
||
/* |---------------------------------------------------------------| */ | ||
/* | Widgets | */ | ||
/* |---------------------------------------------------------------| */ | ||
|
||
/* Base Sign In */ | ||
"signin.title": "ログイン", | ||
"signin.subtitle": "続行するには認証情報を入力してください。", | ||
|
||
/* Base Sign Up */ | ||
"signup.title": "サインアップ", | ||
"signup.subtitle": "はじめるには新しいアカウントを作成してください。", | ||
|
||
/* Email OTP */ | ||
"email.otp.title": "OTP認証", | ||
"email.otp.subtitle": "メールに送信されたコードを入力してください。", | ||
"email.otp.submit.button": "続行", | ||
|
||
/* Identifier First */ | ||
"identifier.first.title": "ログイン", | ||
"identifier.first.subtitle": "ユーザー名またはメールアドレスを入力してください。", | ||
"identifier.first.submit.button": "続行", | ||
|
||
/* SMS OTP */ | ||
"sms.otp.title": "OTP認証", | ||
"sms.otp.subtitle": "電話番号に送信されたコードを入力してください。", | ||
"sms.otp.submit.button": "続行", | ||
|
||
/* TOTP */ | ||
"totp.title": "本人確認", | ||
"totp.subtitle": "認証アプリのコードを入力してください。", | ||
"totp.submit.button": "続行", | ||
|
||
/* Username Password */ | ||
"username.password.submit.button": "続行", | ||
"username.password.title": "ログイン", | ||
"username.password.subtitle": "ユーザー名とパスワードを入力してください。", | ||
|
||
/* |---------------------------------------------------------------| */ | ||
/* | User Profile | */ | ||
/* |---------------------------------------------------------------| */ | ||
|
||
"user.profile.title": "プロフィール", | ||
"user.profile.update.generic.error": "プロフィール更新中にエラーが発生しました。もう一度お試しください。", | ||
|
||
/* |---------------------------------------------------------------| */ | ||
/* | Organization Switcher | */ | ||
/* |---------------------------------------------------------------| */ | ||
|
||
"organization.switcher.select.organization": "組織を選択", | ||
"organization.switcher.switch.organization": "組織を切り替え", | ||
"organization.switcher.loading.organizations": "組織を読み込み中…", | ||
"organization.switcher.members": "メンバー", | ||
"organization.switcher.member": "メンバー", | ||
"organization.switcher.create.organization": "組織を作成", | ||
"organization.switcher.manage.organizations": "組織を管理", | ||
"organization.switcher.manage.button": "管理", | ||
"organization.switcher.organizations.title": "組織", | ||
"organization.switcher.switch.button": "切り替え", | ||
"organization.switcher.no.access": "アクセス権がありません", | ||
"organization.switcher.status.label": "ステータス:", | ||
"organization.switcher.showing.count": "全{total}件中{showing}件を表示", | ||
"organization.switcher.refresh.button": "更新", | ||
"organization.switcher.load.more": "さらに読み込む", | ||
"organization.switcher.loading.more": "読み込み中…", | ||
"organization.switcher.no.organizations": "組織が見つかりません", | ||
"organization.switcher.error.prefix": "エラー:", | ||
|
||
"organization.profile.title": "組織プロファイル", | ||
"organization.profile.loading": "組織を読み込み中…", | ||
"organization.profile.error": "組織の読み込みに失敗しました", | ||
|
||
"organization.create.title": "組織の作成", | ||
"organization.create.name.label": "組織名", | ||
"organization.create.name.placeholder": "組織名を入力", | ||
"organization.create.handle.label": "組織ハンドル", | ||
"organization.create.handle.placeholder": "my-organization", | ||
"organization.create.description.label": "説明", | ||
"organization.create.description.placeholder": "組織の説明を入力", | ||
"organization.create.button": "組織を作成", | ||
"organization.create.creating": "作成中…", | ||
"organization.create.cancel": "キャンセル", | ||
|
||
/* |---------------------------------------------------------------| */ | ||
/* | Messages | */ | ||
/* |---------------------------------------------------------------| */ | ||
|
||
"messages.loading": "読み込み中…", | ||
|
||
/* |---------------------------------------------------------------| */ | ||
/* | Errors | */ | ||
/* |---------------------------------------------------------------| */ | ||
|
||
"errors.title": "エラー", | ||
"errors.sign.in.initialization": "初期化中にエラーが発生しました。後でもう一度お試しください。", | ||
"errors.sign.in.flow.failure": "サインイン処理中にエラーが発生しました。後でもう一度お試しください。", | ||
"errors.sign.in.flow.completion.failure": | ||
"サインイン処理の完了中にエラーが発生しました。後でもう一度お試しください。", | ||
"errors.sign.in.flow.passkeys.failure": | ||
"パスキーでのサインイン中にエラーが発生しました。後でもう一度お試しください。", | ||
"errors.sign.in.flow.passkeys.completion.failure": | ||
"パスキーによるサインイン完了中にエラーが発生しました。後でもう一度お試しください。", | ||
}; | ||
|
||
const metadata: I18nMetadata = { | ||
localeCode: "ja-JP", | ||
countryCode: "JP", | ||
languageCode: "ja", | ||
displayName: "日本語 (日本)", | ||
direction: "ltr", | ||
}; | ||
|
||
const ja_JP: I18nBundle = { | ||
metadata, | ||
translations, | ||
}; | ||
|
||
export default ja_JP; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please validate the formatting of this file.
Use
ctrl+shift+p
->Format Document
on VSCode. Make sureprettier
is selected as the formatter.Also verify whether the necessary development tools are configured: https://github.com/asgardeo/javascript/blob/main/CONTRIBUTING.md#development-tools
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, please follow this guide: https://github.com/asgardeo/javascript/blob/main/CONTRIBUTING.md#contributing-to-the-internalization-i18n-package
Since we now have a dedicate
i18n
pacakge.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review :)
Since I'm new to Github, not used to reflect the feedbacks.
Could you please confirm all the things you said mirrored properly?
If that’s the case, I’ll go ahead and remove the old file from the PR.
Best regards!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we go ahead and remove the old file and re-clone
en-US
and only modify the content without touching the formatting?Also please try to follow out commit message guideline : https://github.com/asgardeo/javascript/blob/main/CONTRIBUTING.md#commit-message-guidelines
You had it right the first time :)
Let me know if you need any help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hope I mirrored everything right this time... 🥺
Would you please review my PR again?
Thanks.