Skip to content

Replaces a string with <FormattedMessage /> syntax to make translating strings using react-intl easier

Notifications You must be signed in to change notification settings

etaiklein/FormattedMessage

Repository files navigation

FormattedMessage

Download: marketplace.visualstudio.com

  1. Select "hi" in code
  2. Right click and select "FormattedMessage (javascript)"
  3. Code now reads <FormattedMessage defaultMessage="hi" description="" id="" />

Select code to use

Changelog

  • 1.0.4:
    • Add configuration to customize id generation pattern based on FormatJS default pattern. Go to Settings > Extensions > FormattedMessage > ID Generation Pattern.
    • Add allowlistedPaths to customize exluding sections of long ids (default file path id generation option only)
  • 0.02:
    • Right click and select "trans.message (python)" for python formatting

About

Replaces a string with <FormattedMessage /> syntax to make translating strings using react-intl easier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published