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.
 
 
 

20 lines
662 B

  1. import React from 'react';
  2. import { useTranslation } from 'react-i18next';
  3. import DocumentRenderer from '../../components/common/DocumentRenderer';
  4. const PrivacyPolicy = () => {
  5. const { i18n } = useTranslation();
  6. const lang = i18n.language.startsWith('en') ? 'en' : 'zh';
  7. return (
  8. <DocumentRenderer
  9. apiEndpoint={`/api/privacy-policy?lang=${lang}`}
  10. title={i18n.language.startsWith('en') ? 'Privacy Policy' : '隐私政策'}
  11. cacheKey={`privacy_policy_${lang}`}
  12. emptyMessage={i18n.language.startsWith('en') ? 'Failed to load privacy policy...' : '加载隐私政策内容失败...'}
  13. />
  14. );
  15. };
  16. export default PrivacyPolicy;