Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

21 wiersze
660 B

  1. import React from 'react';
  2. import { useTranslation } from 'react-i18next';
  3. import DocumentRenderer from '../../components/common/DocumentRenderer';
  4. const Terms = () => {
  5. const { i18n } = useTranslation();
  6. const lang = i18n.language.startsWith('en') ? 'en' : 'zh';
  7. return (
  8. <DocumentRenderer
  9. key={lang}
  10. apiEndpoint={`/api/terms?lang=${lang}`}
  11. title={i18n.language.startsWith('en') ? 'Terms of Service' : '服务条款'}
  12. cacheKey={`terms_of_service_${lang}`}
  13. emptyMessage={i18n.language.startsWith('en') ? 'Failed to load terms of service...' : '加载服务条款内容失败...'}
  14. />
  15. );
  16. };
  17. export default Terms;