Skip to content

Commit

Permalink
Add Japanese translations for login UI (#10166)
Browse files Browse the repository at this point in the history
* Add Japanese translations for login UI

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>
  • Loading branch information
3 people authored Dec 11, 2024
1 parent 5f03649 commit 8ac5b13
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/three-chefs-ask.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/core": patch
"gradio": patch
---

feat:Add Japanese translations for login UI
4 changes: 2 additions & 2 deletions js/core/src/Login.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<Block>
<Textbox
{root}
label="username"
label={$_("login.username")}
lines={1}
show_label={true}
max_lines={1}
Expand All @@ -63,7 +63,7 @@
<Block>
<Textbox
{root}
label="password"
label={$_("login.password")}
lines={1}
show_label={true}
max_lines={1}
Expand Down
2 changes: 2 additions & 0 deletions js/core/src/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@
"login": {
"enable_cookies": "If you are visiting a HuggingFace Space in Incognito mode, you must enable third party cookies.",
"incorrect_credentials": "Incorrect Credentials",
"username": "username",
"password": "password",
"login": "Login"
},
"number": {
Expand Down
6 changes: 6 additions & 0 deletions js/core/src/lang/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
"errors": {
"use_via_api": "API経由で使おう"
},
"login": {
"incorrect_credentials": "認証情報が正しくありません",
"username": "ユーザ名",
"password": "パスワード",
"login": "ログイン"
},
"upload_text": {
"click_to_upload": "クリックしてアップロード",
"drop_audio": "ここに音声をドロップ",
Expand Down

0 comments on commit 8ac5b13

Please sign in to comment.