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

168
Vistas
put i18next value inside variable JS

I have a JS code that changes the text after some time and I want to use i18next translations in that to make the words "performance, flexibility" etc.. be in more than 1 language. the idea I had to solve this was putting the i18next value inside a variable and substitue the words in the JS code with the variables. but I don't know how to use i18next to put his translated words inside a variable, if someone could help me I would be very grateful!

Json files

en-US

"index" : {
    "performance" : " performance",
    "flexibility" : "flexibility"
}

pt-PT

"index" : {
    "performance" : " Desempenho",
    "flexibility" : "Flexibilidade"
}

JS code

var typed1 = new Typed('#typed1', {
    strings: ["performance", "flexibility", "scalability."],
    typeSpeed: 50,
    backSpeed: 20,
    smartBackspace: true,
    loop: true
});
var typed1 = new Typed('#typed2', {
    strings: ["Protection", "Sophisticated", "Flexibility"],
    typeSpeed: 100,
    backSpeed: 50,
    smartBackspace: true,
    loop: true
});
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