-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
31 lines (29 loc) · 1 KB
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import React from 'react';
import { __, __string, addIntlData } from '../../src';
import intlData from './intl-default.json';
addIntlData(intlData);
export const App = () => (
<div>
<header>
<img src="/path/to/img" alt={__string('header.logo.alt')} />
</header>
<main>
<button>{__('account.remove')}</button>
{__({ id: 'account.remove.info', values: { email: '[email protected]' } }, (info) => (
<p>{info}</p>
))}
{__({
id: 'account.tac.text',
values: {
tac: <a href="/path/to/tac">{__({ id: 'account.tac' })}</a>,
info: __({ id: 'account.tac.info' }),
br: <br />,
},
})}
</main>
<footer>
<a href="/path/to/home">{__({ id: 'footer.navigation.home' })}</a>
<img src="/path/to/img-footer" alt={__string('footer.logo.alt')} />
</footer>
</div>
);