mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-12-06 08:03:46 +00:00
fix(web): translate legal consent text on auth pages (#8254)
Wrap the terms footer sentence and link labels in t(), replace the
hardcoded ' and the ' in legal consent with t('and'), add the footer
keys to all locales, and fix the Vietnamese 'and' translation.
This commit is contained in:
1 parent
48a6c87f9e
commit
8faf1d45e8
9 files changed
+33
-19
No files matched your search
@@ -78,7 +78,7 @@ export function LegalConsent({
|
||||
{t('User Agreement')}
|
||||
</a>
|
||||
)}
|
||||
{hasUserAgreement && hasPrivacyPolicy && ' and the '}
|
||||
{hasUserAgreement && hasPrivacyPolicy && ` ${t('and')} `}
|
||||
{hasPrivacyPolicy && (
|
||||
<a
|
||||
href='/privacy-policy'
|
||||
|
||||
@@ -67,13 +67,13 @@ export function TermsFooter({
|
||||
|
||||
return (
|
||||
<p className={cn('text-muted-foreground text-center text-xs', className)}>
|
||||
{text}{' '}
|
||||
{t(text)}{' '}
|
||||
{firstLink && (
|
||||
<a
|
||||
href={firstLink.href}
|
||||
className='hover:text-primary underline underline-offset-4'
|
||||
>
|
||||
{firstLink.label}
|
||||
{t(firstLink.label)}
|
||||
</a>
|
||||
)}
|
||||
{secondLink && (
|
||||
@@ -84,7 +84,7 @@ export function TermsFooter({
|
||||
href={secondLink.href}
|
||||
className='hover:text-primary underline underline-offset-4'
|
||||
>
|
||||
{secondLink.label}
|
||||
{t(secondLink.label)}
|
||||
</a>
|
||||
</>
|
||||
)}
|
||||
|
||||
@@ -2857,7 +2857,7 @@
|
||||
"footer.columns.related.links.oneApi": "One API",
|
||||
"footer.columns.related.title": "Related Projects",
|
||||
"footer.defaultCopyright": "All rights reserved.",
|
||||
"footer.new\u0061pi.projectAttributionSuffix": "All rights reserved. Designed and developed by the project contributors.",
|
||||
"footer.newapi.projectAttributionSuffix": "All rights reserved. Designed and developed by the project contributors.",
|
||||
"For advanced custom channels this applies only to /v1/responses routes without protocol conversion.": "For advanced custom channels this applies only to /v1/responses routes without protocol conversion.",
|
||||
"For channels added after May 10, 2025, no need to remove \".\" from model names during deployment": "For channels added after May 10, 2025, no need to remove \".\" from model names during deployment",
|
||||
"For private deployments, format: https://fastgpt.run/api/openapi": "For private deployments, format: https://fastgpt.run/api/openapi",
|
||||
@@ -7400,6 +7400,8 @@
|
||||
"Zhipu": "Zhipu",
|
||||
"Zhipu GLM": "Zhipu GLM",
|
||||
"Zhipu V4": "Zhipu V4",
|
||||
"Zoom": "Zoom"
|
||||
"Zoom": "Zoom",
|
||||
"By clicking sign in, you agree to our": "By clicking sign in, you agree to our",
|
||||
"By creating an account, you agree to our": "By creating an account, you agree to our"
|
||||
}
|
||||
}
|
||||
@@ -2857,7 +2857,7 @@
|
||||
"footer.columns.related.links.oneApi": "One API",
|
||||
"footer.columns.related.title": "Projets liés",
|
||||
"footer.defaultCopyright": "Tous droits réservés.",
|
||||
"footer.new\u0061pi.projectAttributionSuffix": "Tous droits réservés. Conçu et développé par les contributeurs du projet.",
|
||||
"footer.newapi.projectAttributionSuffix": "Tous droits réservés. Conçu et développé par les contributeurs du projet.",
|
||||
"For advanced custom channels this applies only to /v1/responses routes without protocol conversion.": "Pour les canaux personnalisés avancés, ceci ne s’applique qu’aux routes /v1/responses sans conversion de protocole.",
|
||||
"For channels added after May 10, 2025, no need to remove \".\" from model names during deployment": "Pour les canaux ajoutés après le 10 mai 2025, pas besoin de supprimer \".\" des noms de modèles lors du déploiement",
|
||||
"For private deployments, format: https://fastgpt.run/api/openapi": "Pour les déploiements privés, format : https://fastgpt.run/api/openapi",
|
||||
@@ -7400,6 +7400,8 @@
|
||||
"Zhipu": "Zhipu",
|
||||
"Zhipu GLM": "Zhipu GLM",
|
||||
"Zhipu V4": "Zhipu V4",
|
||||
"Zoom": "Zoom"
|
||||
"Zoom": "Zoom",
|
||||
"By clicking sign in, you agree to our": "En cliquant sur se connecter, vous acceptez nos",
|
||||
"By creating an account, you agree to our": "En créant un compte, vous acceptez nos"
|
||||
}
|
||||
}
|
||||
@@ -2857,7 +2857,7 @@
|
||||
"footer.columns.related.links.oneApi": "1つのAPI",
|
||||
"footer.columns.related.title": "関連プロジェクト",
|
||||
"footer.defaultCopyright": "すべての権利を留保します。",
|
||||
"footer.new\u0061pi.projectAttributionSuffix": "すべての権利を留保します。プロジェクトコントリビューターにより設計・開発されています。",
|
||||
"footer.newapi.projectAttributionSuffix": "すべての権利を留保します。プロジェクトコントリビューターにより設計・開発されています。",
|
||||
"For advanced custom channels this applies only to /v1/responses routes without protocol conversion.": "高度なカスタムチャネルでは、プロトコル変換を行わない /v1/responses ルートにのみ適用されます。",
|
||||
"For channels added after May 10, 2025, no need to remove \".\" from model names during deployment": "2025 年 5 月 10 日以降に追加されたチャネルの場合、デプロイ時にモデル名から「.」を削除する必要はありません",
|
||||
"For private deployments, format: https://fastgpt.run/api/openapi": "プライベートデプロイメントの場合、形式: https://fastgpt.run/api/openapi",
|
||||
@@ -7400,6 +7400,8 @@
|
||||
"Zhipu": "Zhipu",
|
||||
"Zhipu GLM": "Zhipu GLM",
|
||||
"Zhipu V4": "Zhipu V 4",
|
||||
"Zoom": "ズーム"
|
||||
"Zoom": "ズーム",
|
||||
"By clicking sign in, you agree to our": "サインインをクリックすると、以下に同意したことになります:",
|
||||
"By creating an account, you agree to our": "アカウントを作成すると、以下に同意したことになります:"
|
||||
}
|
||||
}
|
||||
@@ -2857,7 +2857,7 @@
|
||||
"footer.columns.related.links.oneApi": "Один API",
|
||||
"footer.columns.related.title": "Связанные проекты",
|
||||
"footer.defaultCopyright": "Все права защищены.",
|
||||
"footer.new\u0061pi.projectAttributionSuffix": "Все права защищены. Разработано участниками проекта.",
|
||||
"footer.newapi.projectAttributionSuffix": "Все права защищены. Разработано участниками проекта.",
|
||||
"For advanced custom channels this applies only to /v1/responses routes without protocol conversion.": "Для расширенных пользовательских каналов это действует только для маршрутов /v1/responses без преобразования протокола.",
|
||||
"For channels added after May 10, 2025, no need to remove \".\" from model names during deployment": "Для каналов, добавленных после 10 мая 2025 г., не нужно удалять \".\" из имён моделей при развёртывании",
|
||||
"For private deployments, format: https://fastgpt.run/api/openapi": "Для частных развертываний, формат: https://fastgpt.run/api/openapi",
|
||||
@@ -7400,6 +7400,8 @@
|
||||
"Zhipu": "Zhipu",
|
||||
"Zhipu GLM": "Zhipu GLM",
|
||||
"Zhipu V4": "Zhipu V4",
|
||||
"Zoom": "Zoom"
|
||||
"Zoom": "Zoom",
|
||||
"By clicking sign in, you agree to our": "Нажимая «Войти», вы соглашаетесь с нашими",
|
||||
"By creating an account, you agree to our": "Создавая аккаунт, вы соглашаетесь с нашими"
|
||||
}
|
||||
}
|
||||
@@ -528,7 +528,7 @@
|
||||
"An unexpected error occurred": "Đã xảy ra lỗi không mong muốn",
|
||||
"An unknown error occurred": "Đã xảy ra lỗi không xác định",
|
||||
"Analyze data": "Phân tích dữ liệu",
|
||||
"and": "and",
|
||||
"and": "và",
|
||||
"And {{count}} more models": "Và {{count}} mô hình khác",
|
||||
"Announcement #{{index}} content cannot exceed 500 characters": "Nội dung của thông báo #{{index}} không được vượt quá 500 ký tự",
|
||||
"Announcement #{{index}} has an invalid publish date format": "Thông báo #{{index}} có định dạng ngày đăng không hợp lệ",
|
||||
@@ -2857,7 +2857,7 @@
|
||||
"footer.columns.related.links.oneApi": "One API",
|
||||
"footer.columns.related.title": "Các Dự Án Liên Quan",
|
||||
"footer.defaultCopyright": "Bản quyền được bảo lưu.",
|
||||
"footer.new\u0061pi.projectAttributionSuffix": "Bản quyền được bảo lưu. Được thiết kế và phát triển bởi các cộng tác viên dự án.",
|
||||
"footer.newapi.projectAttributionSuffix": "Bản quyền được bảo lưu. Được thiết kế và phát triển bởi các cộng tác viên dự án.",
|
||||
"For advanced custom channels this applies only to /v1/responses routes without protocol conversion.": "Với kênh tùy chỉnh nâng cao, thiết lập này chỉ áp dụng cho các route /v1/responses không chuyển đổi giao thức.",
|
||||
"For channels added after May 10, 2025, no need to remove \".\" from model names during deployment": "Đối với các kênh được thêm sau ngày 10 tháng 5 năm 2025, không cần loại bỏ \".\" khỏi tên mô hình trong quá trình triển khai",
|
||||
"For private deployments, format: https://fastgpt.run/api/openapi": "Đối với các triển khai riêng tư, định dạng: https://fastgpt.run/api/openapi",
|
||||
@@ -7400,6 +7400,8 @@
|
||||
"Zhipu": "Zhipu",
|
||||
"Zhipu GLM": "Zhipu GLM",
|
||||
"Zhipu V4": "Zhipu V4",
|
||||
"Zoom": "Zoom"
|
||||
"Zoom": "Zoom",
|
||||
"By clicking sign in, you agree to our": "Bằng cách nhấp đăng nhập, bạn đồng ý với",
|
||||
"By creating an account, you agree to our": "Bằng cách tạo tài khoản, bạn đồng ý với"
|
||||
}
|
||||
}
|
||||
@@ -2857,7 +2857,7 @@
|
||||
"footer.columns.related.links.oneApi": "One API",
|
||||
"footer.columns.related.title": "相關項目",
|
||||
"footer.defaultCopyright": "版權所有。",
|
||||
"footer.new\u0061pi.projectAttributionSuffix": "版權所有,由項目貢獻者設計與開發。",
|
||||
"footer.newapi.projectAttributionSuffix": "版權所有,由項目貢獻者設計與開發。",
|
||||
"For advanced custom channels this applies only to /v1/responses routes without protocol conversion.": "進階自訂渠道僅對 /v1/responses 且不做協定轉換的路由生效。",
|
||||
"For channels added after May 10, 2025, no need to remove \".\" from model names during deployment": "對於 2025 年 5 月 10 日之後新增的渠道,在部署時無需從模型名稱中移除 \".\"",
|
||||
"For private deployments, format: https://fastgpt.run/api/openapi": "對於私有部署,格式為:https://fastgpt.run/api/openapi",
|
||||
@@ -7400,6 +7400,8 @@
|
||||
"Zhipu": "智譜",
|
||||
"Zhipu GLM": "智譜GLM",
|
||||
"Zhipu V4": "智譜 V4",
|
||||
"Zoom": "縮放"
|
||||
"Zoom": "縮放",
|
||||
"By clicking sign in, you agree to our": "點擊登入即表示您同意我們的",
|
||||
"By creating an account, you agree to our": "建立帳戶即表示您同意我們的"
|
||||
}
|
||||
}
|
||||
@@ -2857,7 +2857,7 @@
|
||||
"footer.columns.related.links.oneApi": "One API",
|
||||
"footer.columns.related.title": "相关项目",
|
||||
"footer.defaultCopyright": "版权所有。",
|
||||
"footer.new\u0061pi.projectAttributionSuffix": "版权所有,由项目贡献者设计与开发。",
|
||||
"footer.newapi.projectAttributionSuffix": "版权所有,由项目贡献者设计与开发。",
|
||||
"For advanced custom channels this applies only to /v1/responses routes without protocol conversion.": "高级自定义渠道仅对 /v1/responses 且不做协议转换的路由生效。",
|
||||
"For channels added after May 10, 2025, no need to remove \".\" from model names during deployment": "对于 2025 年 5 月 10 日之后添加的渠道,在部署时无需从模型名称中移除 \".\"",
|
||||
"For private deployments, format: https://fastgpt.run/api/openapi": "对于私有部署,格式为:https://fastgpt.run/api/openapi",
|
||||
@@ -7400,6 +7400,8 @@
|
||||
"Zhipu": "智谱",
|
||||
"Zhipu GLM": "智谱GLM",
|
||||
"Zhipu V4": "智谱 V4",
|
||||
"Zoom": "缩放"
|
||||
"Zoom": "缩放",
|
||||
"By clicking sign in, you agree to our": "点击登录即表示您同意我们的",
|
||||
"By creating an account, you agree to our": "创建账户即表示您同意我们的"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user