lokalise / i18n-ally-jetbrains-docs

6 stars 4 forks source link

Support functional syntax (Paraglide.js example) #52

Open nirtamir2 opened 3 months ago

nirtamir2 commented 3 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 i18n-ally to inline the value based on this config. I tried to configure the default template to m.%key%(%map%) but it does not convert the key (it translated to m.%key%((name: $someName)) instead).

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

Related https://github.com/marhali/easy-i18n/issues/404