메인 컨텐츠로 이동
버전: 3.2.1

no-untranslated-text

JSX의 텍스트 라벨이 translate 호출로 래핑되도록 적용합니다.

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

설정할 수 있는 필드

옵션타입기본값설명
ignoredStringsstring[][]목록에 있는 문자열만 포함하는 텍스트 라벨은 보고되지 않습니다.

When Not To Use It

If you're not using the i18n feature, you can disable this rule. 텍스트가 번역되지 않아야 한다면 이 규칙을 비활성화합니다.

Further Reading