Install the TML Gem
gem "tml-rails"
Configure the SDK: Create an initializer and configure the SDK:
# config/initializers/tml.rb
Tml.configure do |config|
config.application = {
key: 'YOUR_APPLICATION_KEY'
}
config.cache = {
enabled: true,
adapter: 'rails'
}
end
Use the TML Helpers: Use helper tags and wrap your strings with "tr" function:
// 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