Skip to content

Commit

Permalink
Add japanese translation. (#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
penguinlab authored Sep 16, 2024
1 parent 0b204a6 commit 3c959ba
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ These options can be configured by setting environment variables using `-e KEY="
| `WG_PRE_DOWN` | `...` | - | See [config.js](https://github.com/wg-easy/wg-easy/blob/master/src/config.js#L27) for the default value. |
| `WG_POST_DOWN` | `...` | `iptables ...` | See [config.js](https://github.com/wg-easy/wg-easy/blob/master/src/config.js#L28) for the default value. |
| `WG_ENABLE_EXPIRES_TIME` | `false` | `true` | Enable expire time for clients |
| `LANG` | `en` | `de` | Web UI language (Supports: en, ua, ru, tr, no, pl, fr, de, ca, es, ko, vi, nl, is, pt, chs, cht, it, th, hi). |
| `LANG` | `en` | `de` | Web UI language (Supports: en, ua, ru, tr, no, pl, fr, de, ca, es, ko, vi, nl, is, pt, chs, cht, it, th, hi, ja). |
| `UI_TRAFFIC_STATS` | `false` | `true` | Enable detailed RX / TX client stats in Web UI |
| `UI_CHART_TYPE` | `0` | `1` | UI_CHART_TYPE=0 # Charts disabled, UI_CHART_TYPE=1 # Line chart, UI_CHART_TYPE=2 # Area chart, UI_CHART_TYPE=3 # Bar chart |
| `WG_ENABLE_ONE_TIME_LINKS` | `false` | `true` | Enable display and generation of short one time download links (expire after 5 minutes) |
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
wg-easy:
environment:
# Change Language:
# (Supports: en, ua, ru, tr, no, pl, fr, de, ca, es, ko, vi, nl, is, pt, chs, cht, it, th, hi)
# (Supports: en, ua, ru, tr, no, pl, fr, de, ca, es, ko, vi, nl, is, pt, chs, cht, it, th, hi, ja)
- LANG=en
# ⚠️ Required:
# Change this to your host's public address
Expand Down
40 changes: 40 additions & 0 deletions src/www/js/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,4 +640,44 @@ const messages = { // eslint-disable-line no-unused-vars
madeBy: 'सर्जक',
donate: 'दान करें',
},
ja: { // github.com/penguinlab
name: '名前',
password: 'パスワード',
signIn: 'サインイン',
logout: 'ログアウト',
updateAvailable: 'アップデートがあります!',
update: 'アップデート',
clients: 'クライアント',
new: '新規',
deleteClient: 'クライアントを削除',
deleteDialog1: '削除してもよろしいですか?',
deleteDialog2: 'この操作を取り消すことはできません。',
cancel: 'キャンセル',
create: '作成',
createdOn: '作成日: ',
lastSeen: '最終アクセス日: ',
totalDownload: 'ダウンロードの合計: ',
totalUpload: 'アップロードの合計: ',
newClient: '新規クライアント',
disableClient: 'クライアントを無効化',
enableClient: 'クライアントを有効化',
noClients: 'クライアントはまだありません。',
noPrivKey: 'このクライアントには既知の秘密鍵がありません。設定を作成できません。',
showQR: 'QRコードを表示',
downloadConfig: '設定をダウンロード',
madeBy: '作成者: ',
donate: '寄付',
toggleCharts: 'チャートを表示/非表示',
theme: { dark: 'ダークテーマ', light: 'ライトテーマ', auto: '自動テーマ' },
restore: 'リストア',
backup: 'バックアップ',
titleRestoreConfig: '設定をリストア',
titleBackupConfig: '設定をバックアップ',
rememberMe: 'ログイン情報を記憶',
titleRememberMe: 'ブラウザを閉じてもログインしたままにする',
sort: '並び替え',
ExpireDate: '有効期限日',
Permanent: '無期限',
OneTimeLink: '短いワンタイムリンクを生成',
},
};

0 comments on commit 3c959ba

Please sign in to comment.