Skip to content

ESLint plugin for detecting duplicates and extracting messageIds and defaultMessages from React Intl tags.

Notifications You must be signed in to change notification settings

kesko-dev/eslint-plugin-react-intl-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESLint React Intl extractor

This ESLint plugin will:

  • Report duplicate messageIds with different defaultMessages.
  • Collect and dump messageIds and defaultMessages into a target dir/locale.json file.

Configuration

Provide dir and locale to enable storing of extracted locale data.

{
  "rules": {
    "react-intl-extractor/message-collector": [
        "error",
        {
          "dir": "src/translations",
          "locale": "en"
        }
    ]
  }
}

TODO

Tests need some work.

About

ESLint plugin for detecting duplicates and extracting messageIds and defaultMessages from React Intl tags.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published