New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@inlang/plugin-message-format

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inlang/plugin-message-format

This plugin stores messages in the inlang message format.

  • 1.4.0
  • npm
  • Socket score

Version published
Weekly downloads
21K
increased by17.56%
Maintainers
2
Weekly downloads
 
Created
Source

Plugin inlang message format

This plugin stores messages in the inlang message format.

  • supports all inlang messages features (variants, markup, etc.)
  • typesafe

When to use

The message format is optimized to be edited with the ide-xtension

Use the inlang message format plugin if you have no previous translation files, or you want to migrate to the inlang format for a better experience. If you want to edit messages manually, the JSON translation files plugin is a better choice.

Settings

filePath: The path where the messages are stored.

Architecture

The plugin stores messages as one-to-one mapping in a JSON file.

Pros

  • no need to for a parsing or serialization step for messages except for JSON.parse and JSON.stringify
  • automatic support for all inlang features and typesafety

Cons

  • storing the pattern as AST leads to more disk space usage than storing the pattern as string. a future optimization, if required (!), could store the pattern as a string but would require a parsing and serialization step for each message and a custom message type for typesafety.

Is something unclear or do you have questions? Reach out to us in our Discord channel, open a Discussion, or file an Issue on Github.

FAQs

Package last updated on 02 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc