text: // component mixin
  import { get, camelize } from '../utils';
  
  export default {
    computed: {
      $t() {
        const { name } = this.$options;
        const prefix = name ? camelize(name) + '.' : '';
        const messages = this.$vantMessages[this.$vantLang];
  
        return (path, ...args) => {
          const message = get(messages, prefix + path) || get(messages, path);
          return typeof message === 'function' ? message.apply(null, args) : message;
        };
      }
    }
  };
  