signal-desktop/ts/components/Intl.md
Scott Nonnenberg 3c69886320 Finish new Message component, integrate into application
Also:
- New schema version 8 with video/image thumbnails, screenshots, sizes
- Upgrade messages not at current schema version when loading messages
  to show in conversation
- New MessageDetail react component
- New ConversationHeader react component
2018-07-17 15:58:07 -07:00

61 lines
929 B
Markdown

#### No replacements
```jsx
<Intl id="leftTheGroup" i18n={util.i18n} />
```
#### Single string replacement
```jsx
<Intl id="leftTheGroup" i18n={util.i18n} components={['Alice']} />
```
#### Single tag replacement
```jsx
<Intl
id="leftTheGroup"
i18n={util.i18n}
components={[
<button
key="external-2"
style={{ backgroundColor: 'blue', color: 'white' }}
>
Alice
</button>,
]}
/>
```
#### Multiple string replacement
```jsx
<Intl
id="changedSinceVerified"
i18n={util.i18n}
components={['Alice', 'Bob']}
/>
```
#### Multiple tag replacement
```jsx
<Intl
id="changedSinceVerified"
i18n={util.i18n}
components={[
<button
key="external-1"
style={{ backgroundColor: 'blue', color: 'white' }}
>
Alice
</button>,
<button
key="external-2"
style={{ backgroundColor: 'black', color: 'white' }}
>
Bob
</button>,
]}
/>
```