This plugin enables [Sherlock](https://inlang.com/m/r7kp499g/app-inlang-ideExtension) (VS Code extension) to recognize `m.message()` function calls used by [Paraglide JS](https://inlang.com/m/gerre34r/library-inlang-paraglideJs).
npm install @inlang/plugin-m-function-matcherThis plugin enables Sherlock (VS Code extension) to recognize m.message() function calls used by Paraglide JS.
- Inline previews: See translations directly in your code editor
- Message extraction: Extract hardcoded strings into messages
- Linting: Get warnings for missing or invalid message references
- TypeScript (.ts, .tsx)
- JavaScript (.js, .jsx)
- Svelte (.svelte)
- Vue (.vue)
- Astro (.astro)
Add the plugin to your project.inlang/settings.json:
``json`
{
"modules": [
"https://cdn.jsdelivr.net/npm/@inlang/plugin-m-function-matcher@latest/dist/index.js"
]
}
Then install Sherlock from the VS Code marketplace.
The plugin recognizes these patterns:
| Pattern | Example |
| -------------- | ------------------------------- |
| Simple call | m.welcome() |m.greeting({ name: "World" })
| With variables | |{m.button_label()}` |
| In JSX |