Modernizes the whole i18n stack:
- 48 translate([], {wait:true}) / translate() HOCs -> withTranslation()
- react.wait:true -> react.useSuspense:false
- whitelist -> supportedLngs; added compatibilityJSON: 'v3' so our
natural-language keys + v3 _plural layout keep working (custom
separators ss/eth/dj preserved)
- backends: xhr -> i18next-http-backend (client), sync-fs ->
i18next-fs-backend (server); dropped i18next-localstorage-cache
(was enabled:false); languagedetector 2 -> 8
- ReSendEmail: <Interpolate> (removed in v10) -> <Trans values={{email}}/>,
dropped the removed bare t export
- saveMissing handler signature (lngs, ns, key, fallbackValue)
Silences the per-component Translate/I18n legacy-context warnings.
Browser-verified es/en switch and <Trans> interpolation on /fires;
REST smoke byte-identical.
20 lines
615 B
JavaScript
20 lines
615 B
JavaScript
/* eslint-disable import/no-absolute-path */
|
|
/* eslint-disable react/jsx-indent-props */
|
|
/* eslint-disable react/jsx-indent */
|
|
|
|
import React from 'react';
|
|
import { withTranslation } from 'react-i18next';
|
|
import { dateParseShortFormat } from '/imports/api/Common/dates';
|
|
import Page from '../Page/Page';
|
|
|
|
const Privacy = props => (
|
|
<div className="Privacy">
|
|
<Page
|
|
title={props.t('Política de Privacidad')}
|
|
subtitle={props.t('Última actualización, {{when}}', { when: dateParseShortFormat('2018-01-19') })}
|
|
page="privacy"
|
|
/>
|
|
</div>
|
|
);
|
|
|
|
export default withTranslation()(Privacy);
|