With Dothraki-JS you can start translating your app.
$ npm install https://github.com/anderson-cubo/dothraki-jsimport { settings } from 'dothraki-js'
const PT_BR_dictionary = {
'Hi': 'Olá',
'Welcome', 'Bem-Vindo'
}
settings.setDictionary('PT_BR', PT_BR_dictionary)import { settings } from 'dothraki-js'
settings.set('language', 'PT_BR')import { settings } from 'dothraki-js'
settings.getDictionaryWithoutTranslation()import { settings } from 'dothraki-js'
settings.set('_ENABLE_WARNINGS', false)import dothraki from 'dothraki-js'
console.log(dothraki`Hi`)import { settings } from 'dothraki-js'
const PT_BR_dictionary = {
'Welcome, {{0}}': 'Bem-Vindo, {{0}}'
}
settings.setDictionary('PT_BR', PT_BR_dictionary)import dothraki from 'dothraki-js'
const user = 'John'
dothraki`Welcome, ${user}`import dothraki from 'dothraki-js'
const user = 'John'
dothraki`Welcome, ${<span>{user}</span>}`