我认为解决此问题的最佳方法不是翻译您拥有的整个“checkbox1”行,而是仅引用退货内部的链接,然后翻译其他单独的文本。
return (<p> {t("exchange.iAgreeWith")} {termsOfUseLink} {t("exchange.and")} {howItWorksLink} {t("exchange.and")} {privacyPolicyLink } </p>
Json 文件:
"iAgreeWith": "I agree with",
"and" : "and"
"checkbox1-links": {
"termsOfUse": "Terms of Use",
"howItWorks": "How it works",
"privacyPolicy": "Privacy Policy"
},