Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

99
Views
lit web component localization using lit-translate

I am using lit-localization(https://www.npmjs.com/package/lit-translate) to change component language. But all documentations and demos are using typescript.

If anyone have done web component localization using lit-translate, please share it how you did it using javascript. If not what is the solution to localize my web component.

https://github.com/andreasbm/lit-translate

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I could solve this issue following this document. using npm dedupe.

There shouldn't be multiple lit-html maintained inside node_modules folder. runing npm dedupe , it Searches the local package tree and attempts to simplify the overall structure by moving dependencies further up the tree,

npm ls lit-html

a
+-- b <-- depends on c@1.0.x
|   `-- c@1.0.3
`-- d <-- depends on c@~1.0.9
    `-- c@1.0.10

npm dedupe

a
+-- b
+-- d
`-- c@1.0.10

so running npm dedupe solved my issue. Thanks.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!