marhali / easy-i18n

This is a IntelliJ IDE based plugin for internationalization. Supports the most common translation file types.
MIT License
78 stars 24 forks source link

Support Paraglide.js function syntax #404

Open nirtamir2 opened 2 months ago

nirtamir2 commented 2 months ago

Hi! I'm using Paraglide.js for i18n, and it has a functional syntax

import * as m from "@/paraglide/messages";
// ...

m.hello()
m.greeting({name: "Nir"}) //with param

I could not configure easy-i18n to inline the value based on this config. I configured i18n flavor template to m. But I need to call it like

import * as m from "@/paraglide/messages";
// ...

m["hello"]()
m.["greeting"]({name: "Nir"}) //with param

In order to see the inline hint image

Can we support functional form? so I would like to write the syntax on the top Thanks!