Add support for translatable terms in JS UI