chore: add translations

This commit is contained in:
Tommaso Casaburi
2026-04-16 13:51:54 +07:00
parent f1d5c0b078
commit 35a5cb2411
36 changed files with 76 additions and 36 deletions
@@ -1,4 +1,5 @@
import Version from '../version';
import { useTranslation } from 'react-i18next';
type SiteLegalMetaOrder = 'version-first' | 'license-first';
@@ -7,7 +8,11 @@ type SiteLegalMetaProps = {
order?: SiteLegalMetaOrder;
};
const LicenseText = () => <span>5chan is free and open-source software under GPL-3.0-or-later.</span>;
const LicenseText = () => {
const { t } = useTranslation();
return <span>{t('site_legal_meta_license_text')}</span>;
};
const VersionFeedbackContact = () => (
<>