import * as Handlebars from 'handlebars' ; import { IHtmlEngineHelper , IHandlebarsOptions } from './html-engine-helper.interface' ; import I18nEngine from '../i18n.engine' ; export class I18nHelper implements IHtmlEngineHelper { public helperFunc ( context , i18n_key ) { if ( I18nEngine . exists ( i18n_key ) ) { return I18nEngine . translate ( i18n_key . toLowerCase ( ) ) ; } else { return i18n_key ; } } }