Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

243
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda