IFreeOvO / i18n-cli

支持将vue、react项目里的中文替换成 i18n 国际化标记,并支持自动翻译的命令行工具
MIT License
119 stars 36 forks source link

Vue2中使用vue-property-decorator传递属性问题 #135

Closed wenyiweb closed 1 week ago

wenyiweb commented 2 weeks ago

通过 @Prop传递的属性会被转换错误 原始代码: @Prop({ type: String, default: '上传数据' }) btnName!: string 转换之后的: @Prop({ type: String, default: this.$t('上传数据') }) btnName!: string

在运行是的代码是undefined.$t,找不到$t属性

image
github-actions[bot] commented 1 week ago

Since the issue was labeled with inactive, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply. 由于该 issue 被标记为不活跃,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复.