
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
i18next-firebase-backend
Advanced tools
This is a simple i18next backend to be used in the browser. It will load resources from a firebase database using firebase.
Source can be loaded via npm, bower or downloaded from this repo.
# npm package
$ npm install i18next-firebase-backend
# bower
$ bower install i18next-firebase-backend
Wiring up:
import i18next from 'i18next';
import XHR from 'i18next-firebase-backend';
i18next
.use(XHR)
.init(i18nextOptions);
window.i18nextFirebaseBackend{
// path where resources get loaded from, or a function
// returning a path:
// function(lngs, namespaces) { return customPath; }
// the returned path will interpolate lng, ns if provided like giving a static path
loadPath: '/locales/{{lng}}/{{ns}}',
// path to post missing resources
addPath: 'locales/add/{{lng}}/{{ns}}',
// allow cross domain requests
crossDomain: false,
// define a custom xhr function
// can be used to support XDomainRequest in IE 8 and 9
ajax: function (url, options, callback, data) {}
}
Options can be passed in:
preferred - by setting options.backend in i18next.init:
import i18next from 'i18next';
import XHR from 'i18next-firebase-backend';
i18next
.use(XHR)
.init({
backend: options
});
on construction:
import XHR from 'i18next-firebase-backend';
const xhr = new XHR(null, options);
via calling init:
import XHR from 'i18next-firebase-backend';
const xhr = new XHR();
xhr.init(options);
FAQs
backend layer for i18next using firebase
The npm package i18next-firebase-backend receives a total of 4 weekly downloads. As such, i18next-firebase-backend popularity was classified as not popular.
We found that i18next-firebase-backend demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.