I18n and Typescript?
I am not sure.
You can use it as it is by doing this:
In your .ts file do such import:
import * as i18n from '../i18nPath/i18n';
Use it as usual:
i18n.init ('zh'); // init parameter is the language identifier, such as 'zh', 'en', etc. var myLocalizedText = i18n.t ('TEXT_KEY');
The only downside is you probably won’t get any autocomplete from i18n.