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

235
Views
How to put values inside JSON for localization? (JavaScript)

Let's say I have to translate this string into several languages and I create a JSON file and import it to do so.

<@${interaction.user.id}> made a suggestion. ${suggestion}

A couldn't think of a better example, so let's assume not in every language made a suggestion. part is in the middle. Sometimes it can be before <@${interaction.user.id}>. So when I create a JSON file and only translate made a suggestion. to different languages, that would cause a problem.

What I'm wondering is, if there is a way to take the string with the value placeholders for values? What's the best practice for this? Can't I take and translate the whole thing with the proper value placements?

about 4 years ago · Juan Pablo Isaza
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!