gettext

Consider using tag-gettext function (less code, supports template expressions)

Live demo

this demo works without transpile step, consider using babel-plugin-c-3po for production usage

https://jsfiddle.net/AlexMost/us7hufjr/3/

Usage

import { gettext } from 'c-3po'

gettext('simple gettext');

gettext format

valid:

gettext('simple gettext')

invalid:

gettext(`template literal`) // template literals are not supported
gettext('one', 'two') // gettext supports only 1 argument

results matching ""

    No results matching ""