JavaScript modules as config / project / language model files


#1

Hi there,

any chance the CLI will support JS modules as source files in the future?
Eg. I would love to have a de-DE.mjs file as my language model and use top level awaits to dynamically fill in my custom slots (coming from an API).

Best,
Dominik.


#2

Hi @dominik-meissner,

Thank you, great idea. For your use case, Jovo v4 CLI supports hooks that should also be helpful to dynamically fill in data.

cc @rubenaeg


#3

Interesting idea, I’ll play around with it, thanks for bringing it up :+1:


#4

Btw this is now implemented. Update your Jovo CLI to see this in action!


#5

Pretty cool thanks! I will give it a try!