From 26519b9482a95f0fc7abc4ff345dc741433362c9 Mon Sep 17 00:00:00 2001 From: Aine Date: Tue, 17 Jun 2025 16:26:51 +0300 Subject: [PATCH] minor adjustments --- README.md | 7 ++++--- src/App.tsx | 6 +++--- src/i18n/ja.ts | 7 ++++--- yarn.lock | 23 +++++++++++++++++++++++ 4 files changed, 34 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index afb4c23..bc5f514 100644 --- a/README.md +++ b/README.md @@ -113,9 +113,10 @@ The following changes are already implemented: * 🗂️ [Add Users' Account Data tab](https://github.com/etkecc/synapse-admin/pull/276) * 🧾 [Make bulk registration CSV import more user-friendly](https://github.com/etkecc/synapse-admin/pull/411) * 🌐 [Configurable CORS Credentials](https://github.com/etkecc/synapse-admin/pull/456) -* [Do not check homeserver URL during typing in the login form](https://github.com/etkecc/synapse-admin/pull/585) -* [Improve user account status toggles](https://github.com/etkecc/synapse-admin/pull/608) -* [Validate that password is entered upon reactivation of account](https://github.com/etkecc/synapse-admin/pull/609) +* 🧪 [Do not check homeserver URL during typing in the login form](https://github.com/etkecc/synapse-admin/pull/585) +* 🔧 [Improve user account status toggles](https://github.com/etkecc/synapse-admin/pull/608) +* 🛡️ [Validate that password is entered upon reactivation of account](https://github.com/etkecc/synapse-admin/pull/609) +* 🌏 [Add Japanese localization](https://github.com/etkecc/synapse-admin/pull/631) #### exclusive for [etke.cc](https://etke.cc) customers diff --git a/src/App.tsx b/src/App.tsx index 98c4e0c..7c507f0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -49,9 +49,9 @@ const i18nProvider = polyglotI18nProvider( { locale: "fr", name: "Français" }, { locale: "it", name: "Italiano" }, { locale: "ja", name: "日本語" }, - { locale: "fa", name: "Persian(فارسی)" }, - { locale: "ru", name: "Russian(Русский)" }, - { locale: "zh", name: "简体中文" }, + { locale: "fa", name: "Persian (فارسی)" }, + { locale: "ru", name: "Russian (Русский)" }, + { locale: "zh", name: "Japanese (简体中文)" }, ] ); diff --git a/src/i18n/ja.ts b/src/i18n/ja.ts index a52843a..ef19325 100644 --- a/src/i18n/ja.ts +++ b/src/i18n/ja.ts @@ -61,7 +61,8 @@ const ja: SynapseTranslationMessages = { at_entry: "エントリー %{entry}: %{message}", error: "エラー", required_field: "必須のフィールド「%{field}」がありません", - invalid_value: "%{row}行目に不正な値があります。「%{field}」のフィールドには「true」または「false」を指定してください", + invalid_value: + "%{row}行目に不正な値があります。「%{field}」のフィールドには「true」または「false」を指定してください", unreasonably_big: "ファイルは%{size}メガバイトで大きすぎるため、読み込みを行いませんでした", already_in_progress: "インポートを実行しています", id_exits: "ID %{id} は既に存在しています", @@ -347,7 +348,7 @@ const ja: SynapseTranslationMessages = { action: { erase: { title: "%{id}を削除", - content: '「%{name}」を削除してよろしいですか?', + content: "「%{name}」を削除してよろしいですか?", success: "端末を削除しました。", failure: "エラーが発生しました。", }, @@ -414,7 +415,7 @@ const ja: SynapseTranslationMessages = { send_failure: "エラーが発生しました。", }, helper: { - send: 'サーバーの告知を指定したユーザーに送信。「サーバーの告知」機能がサーバーで有効になっている必要があります。', + send: "サーバーの告知を指定したユーザーに送信。「サーバーの告知」機能がサーバーで有効になっている必要があります。", }, }, user_media_statistics: { diff --git a/yarn.lock b/yarn.lock index 3f77eec..44dfbea 100644 --- a/yarn.lock +++ b/yarn.lock @@ -388,6 +388,13 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== +"@bicstone/ra-language-japanese@^5.6.3": + version "5.6.3" + resolved "https://registry.yarnpkg.com/@bicstone/ra-language-japanese/-/ra-language-japanese-5.6.3.tgz#2ef703ee1453cbf795b4375df70f37c9c4e24359" + integrity sha512-2DMVF0qTzsDy517ls23udvM3eYpO5OiHmokXeXhmg0yYUlF95YgtZ8mwdhp2lP1qukY+xWx1DJCsRoAj0Ife1A== + dependencies: + ra-core ">=4.0.0-alpha.2" + "@cspotcode/source-map-support@^0.8.0": version "0.8.1" resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" @@ -4630,6 +4637,22 @@ queue-microtask@^1.2.2: resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== +ra-core@>=4.0.0-alpha.2: + version "5.8.4" + resolved "https://registry.yarnpkg.com/ra-core/-/ra-core-5.8.4.tgz#1790ca083ed488da63f2f5c973412145dff8eae0" + integrity sha512-UdlhZj9oeGGQDt1dtpDSZ51dXHmZgtooQuhSALLpuCk57Pm/frkF0/JEFIudZGA+2MqVIGAXxaCXNLgeo+d7ZQ== + dependencies: + "@tanstack/react-query" "^5.21.7" + clsx "^2.1.1" + date-fns "^3.6.0" + eventemitter3 "^5.0.1" + inflection "^3.0.0" + jsonexport "^3.2.0" + lodash "^4.17.21" + query-string "^7.1.3" + react-error-boundary "^4.0.13" + react-is "^18.2.0 || ^19.0.0" + ra-core@^4.11.2, ra-core@^4.16.2: version "4.16.20" resolved "https://registry.yarnpkg.com/ra-core/-/ra-core-4.16.20.tgz#ad11785c706f8256ec0e9d371be2e13c8ca40e80"