Skip to content

valanz/ti18ny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ti18ny

Example

let translator = new Translator(Locale.FR);

//Register a dictionnary for a specific language
translator.register(Locale.FR, {
    greetings: {
        hello: 'Bonjour %name%'
    }
});

translator.translate('greetings.hello', {name: 'Betty'})
// => Bonjour Betty

Check out the tests to get more details on how to use the lib.

About

An itsy bitsy typescript translator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published