strong-globalize is built on Unicode CLDR and jquery/globalize and implements automatic extraction of strings from JS source code and HTML templates, lint the string resource, machine-translate them in seconds. In runtime, it loads locale and string resource into memory and provides a hook to persistent logging.
Add type definitions for all classes and methods exported by strong-globalize, to make it easy to use strong-globalize in TypeScript projects.
import * as g from 'strong-globalize';
const name = 'TypeScript';
// g.f has correct type definition of arguments
// g.f return type is annotated as string
const str = g.f('hello world from %s', name);
console.log(str);
Add type definitions for all classes and methods exported by strong-globalize, to make it easy to use strong-globalize in TypeScript projects.
Related: #113