trans.vue 266 B

12345678910111213141516
  1. <template>
  2. <text>{{ !!_t ? t(_t, { ...options }) : '' }}</text>
  3. </template>
  4. <script setup>
  5. import { t } from '@/locale';
  6. const props = defineProps({
  7. _t: String,
  8. options: {
  9. type: Object,
  10. default: () => ({})
  11. }
  12. })
  13. // const { t } = useI18n();
  14. </script>