import { getUIDataMerged } from '@/data-directory/lib/get-data' import { createTranslationFunctions } from '@/languages/lib/translation-utils' import { LinkExternalIcon } from '@primer/octicons-react' import type { LanguageCode } from '@/languages/lib/languages' interface ServerFooterProps { currentLanguage: LanguageCode } export function ServerFooter({ currentLanguage }: ServerFooterProps) { // Load translations on server-side - this ensures all footer translations work const uiData = getUIDataMerged(currentLanguage) const { t } = createTranslationFunctions(uiData, 'footer') return (

{t('legal_heading')}

{/* Machine translation notice for non-English languages */} {currentLanguage !== 'en' &&

{t('machine')}

}
) }