text: import Vue from 'vue';
  import { I18N_NAME } from '../directive-names';
  var I18nDirective = {
      bind: function (el, binding, vnode) {
          if (binding.arg) {
              if (vnode.componentInstance) {
                  Vue.prototype.$log.warn("i18n Directive souldn't be used on a " + vnode.componentInstance.constructor.name + " component. Please use the filter instead.");
              }
              var expression = binding.expression;
              var modifiers = Object.getOwnPropertyNames(binding.modifiers);
              var options = binding.value || {};
              if (modifiers.length > 0) {
                  expression = Vue.prototype.$i18n.translate(modifiers[0], options.params, options.nb, options.modifier);
              }
              el.setAttribute(binding.arg, expression);
          }
      }
  };
  var I18nDirectivePlugin = {
      install: function (v, options) {
          v.directive(I18N_NAME, I18nDirective);
      }
  };
  export default I18nDirectivePlugin;
  //# sourceMappingURL=i18n.js.map