-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snowpack support #213
Comments
Hi @ljani ! Good points about improving doc and typings. Going to create separate tickets for that! Can you, please, explain more about the ESM support? Or to provide a link to some other package that already has it, so it can be taken as an example. |
Hey! Good to hear you found it interesting and made some progress already! Sure, I was a bit plain with ESM:
Hope this dump gave you at least something. |
I'm a Lingui refugee (hi 👋🏻) looking for new home since they removed tagged templates support and I'm looking to localize my Snowpack application as soon as possible.
Here's some context from my Lingui ticket for Snowpack support:
Thus, I started searching for a internalization localization library using tagged templates and found
ttag
.ttag
seems to play nice with Snowpack, because of thepo2json
command. Here's an excerpt from mysnowpack.config.cjs
:I mainly opened this ticket to share my Snowpack config, but I'd like you to consider creating a Snowpack plugin for
ttag
. I thinkpo2json
could be quite easily adapted into a Snowpack plugin.I also noticed a few other points, should I open separate tickets for these?
types/index.d.ts
update
all my.po
files with one command. I scripted this step, but it's something that probably should be built-in. It is not, right?ttag-cli
documentation could be up there in ttag.js.org/docs/Thank you for your work!
EDIT: I forgot that
ttag
didn't support ESM and needsnamedExports
The text was updated successfully, but these errors were encountered: