no-untranslated-text
确保 JSX 中的所有文本标签都被翻译 API 包裹。
When the i18n feature is used, this rule ensures that all labels appearing on the website are translatable, so no string accidentally slips through untranslated.
Rule Details
Examples of incorrect code for this rule:
// Hello World is not translated
<Component>Hello World</Component>
Examples of correct code for this rule:
// Hello World is translated
<Component>
<Translate>Hello World</Translate>
</Component>
Rule Configuration
接受的字段:
选项 |
---|