To make text translatable, you’d use the translate()
function from i18n-calypso. We extract the translatable texts wrapped inside the function and write a POT file that is imported to translate.wordpress.com.
Translated texts are split into chunks loaded via JSON asynchronously.