Simple use case:

import { t } from "ttag" ; t `This string will be translated` ;

import { ngettext, msgid } from "ttag" ; ngettext(msgid ` ${n} banana` , ` ${n} bananas` , n);

import { c } from "ttag" ; c( 'email' ).t `this text will be in email context` ;