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

195
Vistas
Is it possible to use yml files in i18next?

Is it possible to use yml files in i18next? How can I configure my project to accept yml instead of json?

import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import ENUS from "./locales/en_US.yml";

const initLng = navigator.language;
console.log(initLng);
console.log(ENUS);
const resources = {
  'en-US': ENUS
};
i18n
  .use(initReactI18next)
  .init({
    resources,
    lng: initLng,
    interpolation: {
      escapeValue: false
    }
  });

export default i18n;
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Not directly, but you can convert the YAML file to json. i.e. by using a module like: https://github.com/nodeca/js-yaml

btw: the i18next-fs-backend plugin for example is doing this: https://github.com/i18next/i18next-fs-backend enter image description here

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