i18next / i18next-gitbook

165 stars 172 forks source link

Extended example in "Getting Started" uses deprecated XHR backend #139

Closed mogsdad closed 4 years ago

mogsdad commented 4 years ago

🐛 Bug Report

The JSFiddle linked from getting-started.md line 111 uses i18nextXHRBackend, which, according to the backend list, is deprecated.

To Reproduce

See the linked JSFiddle: https://jsfiddle.net/jamuhl/ferfywyf/#tabs=js,result,html

[source code](https://jsfiddle.net/jamuhl/ferfywyf/#tabs=js,result,html)

Expected behavior

Since it's part of the documentation for i18next, the provided example should use supported components.

I've forked the example and updated it to use i18nextHttpBackend instead. The documentation can be changed to link to that, instead:

[source code](https://jsfiddle.net/Mogsdad/pxdcam51/2#tabs=js,result,html)

Alternatively, the original JSFiddle could be updated by jamuhl.

Your Environment

jamuhl commented 4 years ago

was updated...thank you for reporting...