_exec()

in app/launch/src/helpers/Lang.js [18:25]


  _exec(str, sub = {}) {
    const message = _.get(messages, str, str)
    // If there are no opts passed in we can skip interpolation
    if (_.isEmpty(sub)) return this._cache(message, sub)

    var compiled = _.template(message, { interpolate: /{{([\s\S]+?)}}/g })
    return compiled(sub)
  }