Install the TML Express Package
npm install "tml-express" --save
Configure the SDK
var express = require('express');
var cookieParser = require('cookie-parser');
var tml = require('tml-express');
var app = express();
app.use(cookieParser());
app.use(tml.init({
key : "YOUR-PUBLIC-KEY"
});
Use the TML Helpers:Use helper tags and wrap your strings with "tr" function:
<%- tml_scripts_tag %>
// Add a language selector
<%- tml_language_selector_tag("default") %>
// Use "tr" function with your strings
<%- tr("Hello World") %> //Hello World
<%- tr("You have {count || message}", {count: 5}) %> //You have 5 messages
Get detailed reports on how your localization and translation are progressing.
Invite your own translators or order professional translations from our network of 15,000+ on-demand translators with just a few clicks.
Access all your digital content from our dashboard and review your latest translations