From 954939e99d625452fe80baff88d4e04fad29cd49 Mon Sep 17 00:00:00 2001 From: naiba Date: Sat, 22 Mar 2025 22:44:25 +0800 Subject: [PATCH] feat: upgrade frontend --- pkg/i18n/i18n.go | 3 +++ script/fetch-frontends.sh | 2 +- service/singleton/frontend-templates.yaml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/i18n/i18n.go b/pkg/i18n/i18n.go index 89de331..82e88c1 100644 --- a/pkg/i18n/i18n.go +++ b/pkg/i18n/i18n.go @@ -17,6 +17,9 @@ var Languages = map[string]string{ "en_US": "English", "es_ES": "Español", "de_DE": "Deutsch", + "it_IT": "Italiano", + "ru_RU": "Русский", + "ta_IN": "தமிழ்", } type Localizer struct { diff --git a/script/fetch-frontends.sh b/script/fetch-frontends.sh index 0a611ad..1dbb644 100755 --- a/script/fetch-frontends.sh +++ b/script/fetch-frontends.sh @@ -19,7 +19,7 @@ download_and_extract() { curl -L -o "dist.zip" "$repository/releases/download/$version/dist.zip" -[ -e "$targetDir" ] && rm -r "$targetDir" + [ -e "$targetDir" ] && rm -r "$targetDir" unzip -q dist.zip mv dist "$targetDir" diff --git a/service/singleton/frontend-templates.yaml b/service/singleton/frontend-templates.yaml index cf4d185..e65887d 100644 --- a/service/singleton/frontend-templates.yaml +++ b/service/singleton/frontend-templates.yaml @@ -2,7 +2,7 @@ name: "OfficialAdmin" repository: "https://github.com/nezhahq/admin-frontend" author: "nezhahq" - version: "v1.9.0" + version: "v1.10.0" is_admin: true is_official: true - path: "user-dist"