From f9d7736e48e34009e528bf6205031af171f39889 Mon Sep 17 00:00:00 2001 From: "web@ppanel" Date: Sat, 22 Feb 2025 12:33:09 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(site):=20Added=20localization?= =?UTF-8?q?=20support=20for=20custom=20HTML=20and=20keyword=20fields?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 16 +++++-------- apps/admin/app/dashboard/system/site.tsx | 29 ++++++++++++++++++++++++ apps/admin/locales/cs-CZ/system.json | 4 ++++ apps/admin/locales/de-DE/system.json | 4 ++++ apps/admin/locales/en-US/system.json | 4 ++++ apps/admin/locales/es-ES/system.json | 4 ++++ apps/admin/locales/es-MX/system.json | 4 ++++ apps/admin/locales/fa-IR/system.json | 4 ++++ apps/admin/locales/fi-FI/system.json | 4 ++++ apps/admin/locales/fr-FR/system.json | 4 ++++ apps/admin/locales/hi-IN/system.json | 4 ++++ apps/admin/locales/hu-HU/system.json | 4 ++++ apps/admin/locales/ja-JP/system.json | 4 ++++ apps/admin/locales/ko-KR/system.json | 4 ++++ apps/admin/locales/no-NO/system.json | 4 ++++ apps/admin/locales/pl-PL/system.json | 4 ++++ apps/admin/locales/pt-BR/system.json | 4 ++++ apps/admin/locales/ro-RO/system.json | 4 ++++ apps/admin/locales/ru-RU/system.json | 4 ++++ apps/admin/locales/th-TH/system.json | 4 ++++ apps/admin/locales/tr-TR/system.json | 4 ++++ apps/admin/locales/uk-UA/system.json | 4 ++++ apps/admin/locales/vi-VN/system.json | 4 ++++ apps/admin/locales/zh-CN/system.json | 4 ++++ apps/admin/locales/zh-HK/system.json | 4 ++++ apps/admin/services/admin/index.ts | 2 +- apps/admin/services/admin/typings.d.ts | 4 +++- apps/admin/services/common/index.ts | 2 +- apps/admin/services/common/typings.d.ts | 4 +++- apps/user/app/layout.tsx | 5 ++++ apps/user/services/common/index.ts | 2 +- apps/user/services/common/typings.d.ts | 4 +++- apps/user/services/user/typings.d.ts | 4 +++- 33 files changed, 147 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d5745c..3f1be13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,40 +1,36 @@ + # Changelog # [1.0.0-beta.17](https://github.com/perfect-panel/ppanel-web/compare/v1.0.0-beta.16...v1.0.0-beta.17) (2025-02-21) - ### 🐛 Bug Fixes -* **auth**: Refactor reset password form to simplify code input and update placeholder text ([23833b4](https://github.com/perfect-panel/ppanel-web/commit/23833b4)) +- **auth**: Refactor reset password form to simplify code input and update placeholder text ([23833b4](https://github.com/perfect-panel/ppanel-web/commit/23833b4)) # [1.0.0-beta.16](https://github.com/perfect-panel/ppanel-web/compare/v1.0.0-beta.15...v1.0.0-beta.16) (2025-02-21) - ### 🐛 Bug Fixes -* **auth**: Simplify email verification code input rendering ([6f7bc37](https://github.com/perfect-panel/ppanel-web/commit/6f7bc37)) +- **auth**: Simplify email verification code input rendering ([6f7bc37](https://github.com/perfect-panel/ppanel-web/commit/6f7bc37)) # [1.0.0-beta.15](https://github.com/perfect-panel/ppanel-web/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2025-02-21) - ### 🐛 Bug Fixes -* **profile**: Restore filter to ensure only valid OAuth accounts are shown ([315c8f9](https://github.com/perfect-panel/ppanel-web/commit/315c8f9)) +- **profile**: Restore filter to ensure only valid OAuth accounts are shown ([315c8f9](https://github.com/perfect-panel/ppanel-web/commit/315c8f9)) # [1.0.0-beta.14](https://github.com/perfect-panel/ppanel-web/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2025-02-21) - ### 🐛 Bug Fixes -* **locales**: Fixed description in multilingual files, updated text related to email registration functionality ([c356bc2](https://github.com/perfect-panel/ppanel-web/commit/c356bc2)) +- **locales**: Fixed description in multilingual files, updated text related to email registration functionality ([c356bc2](https://github.com/perfect-panel/ppanel-web/commit/c356bc2)) # [1.0.0-beta.13](https://github.com/perfect-panel/ppanel-web/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2025-02-21) - ### 🐛 Bug Fixes -* **api**: Fix type error in API request and add return URL parameter ([ee286dd](https://github.com/perfect-panel/ppanel-web/commit/ee286dd)) +- **api**: Fix type error in API request and add return URL parameter ([ee286dd](https://github.com/perfect-panel/ppanel-web/commit/ee286dd)) diff --git a/apps/admin/app/dashboard/system/site.tsx b/apps/admin/app/dashboard/system/site.tsx index 6ef76b6..1f7e7bd 100644 --- a/apps/admin/app/dashboard/system/site.tsx +++ b/apps/admin/app/dashboard/system/site.tsx @@ -85,6 +85,35 @@ export default function Site() { /> + + + +

{t('keywordsDescription')}

+
+ + updateConfig('keywords', value)} + /> + +
+ + + +

{t('customHtmlDescription')}

+
+ +