Internationalisation CDN links stopped working?

Internationalisation CDN links stopped working?

tosanmartindtosanmartind Posts: 2Questions: 1Answers: 0

I have been using the internationalisation CDN links for translating to spanish my tables, this error appeared like a week ago and I solved it by deleting caché but now it appeared again and it's not solved the previous way. Maybe the servers are down?

DataTables warning: table id=tablaclientes - i18n file loading error. For more information about this error, please see https://datatables.net/tn/21

This question has accepted answers - jump to:

Answers

  • kthorngrenkthorngren Posts: 21,330Questions: 26Answers: 4,951
    Answer ✓

    This test case works with one of the Spanish CDNs:
    https://live.datatables.net/hiqedavu/1/edit

    Have you followed the steps at the link in the error to see where the problem is?
    https://datatables.net/manual/tech-notes/21

    Which link are you having difficulties with. Maybe update the test case with that link so we can see the issue.

    Kevin

  • tosanmartindtosanmartind Posts: 2Questions: 1Answers: 0

    The issue is now resolved, it had to do with something with the CORS policy in my enviroment, I was using this link: url: "//cdn.datatables.net/plug-ins/2.0.5/i18n/es-CL.json".
    Thank you anyway for your help!

  • charly77charly77 Posts: 16Questions: 5Answers: 1

    Hola, cómo lo arreglaste? yo creo que tengo el mismo error.

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Perhaps you can link to your page showing the issue so we can take a look. If it is the same issue it will depend on the CORS policy on your site.

    Allan

  • charly77charly77 Posts: 16Questions: 5Answers: 1
    edited May 23

    Tengo mi web creada en un entorno virtual de localhost, con Apache en Xampp con Windows. He probado varias soluciones de varios sitios de internet y ninguna me sirve.

  • charly77charly77 Posts: 16Questions: 5Answers: 1
    Answer ✓

    Ya lo pude arreglar. En Chrome no sale ventana de error, aunque en la ventana de depuración no aparece el código 200, sino el 307. Sin embargo, en Firefox, donde sí sale un cartel de error con el fichero de traducción al español, tras probar varias extensiones, probé una que sí me funciona. Se llama Cross Domain - CORS. Es muy fácil de encender y trabaja de maravilla para mí.

Sign In or Register to comment.