session-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

929 B

No replacements

<Intl id="leftTheGroup" i18n={util.i18n} />

Single string replacement

<Intl id="leftTheGroup" i18n={util.i18n} components={['Alice']} />

Single tag replacement

<Intl
  id="leftTheGroup"
  i18n={util.i18n}
  components={[
    <button
      key="external-2"
      style={{ backgroundColor: 'blue', color: 'white' }}
    >
      Alice
    </button>,
  ]}
/>

Multiple string replacement

<Intl
  id="changedSinceVerified"
  i18n={util.i18n}
  components={['Alice', 'Bob']}
/>

Multiple tag replacement

<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>,
  ]}
/>