You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- import React from 'react';
- import { useTranslation } from 'react-i18next';
- import DocumentRenderer from '../../components/common/DocumentRenderer';
-
- const PrivacyPolicy = () => {
- const { i18n } = useTranslation();
- const lang = i18n.language.startsWith('en') ? 'en' : 'zh';
-
- return (
- <DocumentRenderer
- apiEndpoint={`/api/privacy-policy?lang=${lang}`}
- title={i18n.language.startsWith('en') ? 'Privacy Policy' : '隐私政策'}
- cacheKey={`privacy_policy_${lang}`}
- emptyMessage={i18n.language.startsWith('en') ? 'Failed to load privacy policy...' : '加载隐私政策内容失败...'}
- />
- );
- };
-
- export default PrivacyPolicy;
|