Skip to content

EE Port - 63560 add vue i18n eslint EE

Ezekiel Kigbo requested to merge 63560-add-vue-i18n-eslint-ee into master

What does this MR do?

Adds eslint-plugin-vue-i18n to provide i18n linting for .vue files.

New Rules

  • Introduces 2 new rules
    • no-bare-strings: providing an error on bare strings
<template>
<div>
 <h1>This is a translatable string</h1> // Error: Content should be marked for translation
</div>
</template>
  • no-bare-attribute-strings: providing an error on bare attributes
<template>
<div>
 <h1 title="This is translatable">{{ __('This is a translatable string') }}</h1> // Error: Attribute should be marked for translation
</div>
</template>

CE MR

CE MR

Edited by Ezekiel Kigbo

Merge request reports

Loading