fix(web): use locale-aware data collection policy URL

This commit is contained in:
RockChinQ
2026-03-11 07:03:52 -04:00
parent 01844d8687
commit 3fb9e542b6
6 changed files with 6 additions and 2 deletions

View File

@@ -297,7 +297,7 @@ export default function Login() {
</a>{' '}
{t('common.and')}{' '}
<a
href="https://docs.langbot.app/insight/data-collection-policy"
href={t('common.dataCollectionPolicyUrl')}
target="_blank"
rel="noopener noreferrer"
className="underline hover:text-foreground transition-colors"

View File

@@ -266,7 +266,7 @@ export default function Register() {
</a>{' '}
{t('common.and')}{' '}
<a
href="https://docs.langbot.app/insight/data-collection-policy"
href={t('common.dataCollectionPolicyUrl')}
target="_blank"
rel="noopener noreferrer"
className="underline hover:text-foreground transition-colors"

View File

@@ -51,6 +51,7 @@ const enUS = {
privacyPolicy: 'Privacy Policy',
and: 'and',
dataCollectionPolicy: 'Data Collection Policy',
dataCollectionPolicyUrl: 'https://docs.langbot.app/en/insight/data-collection-policy',
loading: 'Loading...',
fieldRequired: 'This field is required',
or: 'or',

View File

@@ -52,6 +52,7 @@ const jaJP = {
privacyPolicy: 'プライバシーポリシー',
and: 'および',
dataCollectionPolicy: 'データ収集ポリシー',
dataCollectionPolicyUrl: 'https://docs.langbot.app/ja/insight/data-collection-policy',
loading: '読み込み中...',
fieldRequired: 'この項目は必須です',
or: 'または',

View File

@@ -51,6 +51,7 @@ const zhHans = {
privacyPolicy: '隐私政策',
and: '和',
dataCollectionPolicy: '数据收集政策',
dataCollectionPolicyUrl: 'https://docs.langbot.app/zh/insight/data-collection-policy',
loading: '加载中...',
fieldRequired: '此字段为必填项',
or: '或',

View File

@@ -51,6 +51,7 @@ const zhHant = {
privacyPolicy: '隱私政策',
and: '和',
dataCollectionPolicy: '數據收集政策',
dataCollectionPolicyUrl: 'https://docs.langbot.app/zh/insight/data-collection-policy',
loading: '載入中...',
fieldRequired: '此欄位為必填',
or: '或',