andreasbm / lit-translate

A blazing-fast and lightweight internationalization (i18n) library for your next web-based project

Home Page:https://codepen.io/andreasbm/pen/MWWXPNO?editors=1010

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with translate

e1imba opened this issue · comments

Hello,

I am trying to use lit-translate for my application but it is not working. I saw similar issues ( #6 , #31 ) but I did not manage to solve my problem.

I am always getting : (part) => { partCache.set(part, cb); updatePart(part, cb); }

Result of my npm ls lit-html is:
image

And this is my code:

image

And en.json is pretty simple:

image

Also, when I try to open codepen project from description, it is showing me same error.

Have you installed lit-translate@next ?

#22 (comment)

@christophe-g It is working. Thank you so much! I didn't saw that thread with lit-translate@next

@e1imba - happy it is working for you

@runem, @andreasbm - any chance to publish @next as @v2 so that this type of situation is avoided for new users ?

Sorry for not responding before now.

@christophe-g I've published lit-translate@2.0.0 that supports v2 of lit so new users shouldn't face the confusion anymore.

I've also updated the playground to support v2.

Let me know if you should have any problems and I'll reopen this issue.

Great, thanks !