import type { App } from 'vue'
import { formatTextWithBreaks, tWithBreaks } from '@/locale/index'

export default {
  install(app: App) {
    // 注册全局方法
    app.config.globalProperties.$tWithBreaks = tWithBreaks
    app.config.globalProperties.$formatTextWithBreaks = formatTextWithBreaks
  },
}
