code: function $t() {
      // get the current language from the store
      var locale = store.state[moduleName].locale;
      return translateInLanguage.apply(void 0, [locale].concat(Array.prototype.slice.call(arguments)));
    }
docs: get localized string from store. note that we pass the arguments passed to the function directly to the translateInLanguage function