Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
fluxible-plugin-locale-counterpart
Advanced tools
counterpart locale setting plugin for fluxible
Counterpart locale setting plugin for fluxible.
Use for building beautiful isomorphic app translations.
npm install fluxible-plugin-locale-counterpart --save
You need to set locale
cookie yourself or using LocaleSwitcher code below.
import localePlugin from "fluxible-plugin-locale-counterpart";
app.plug(localePlugin);
I use react-translate-component in my application.
Here's how LocaleSwitcher looks like:
import React from "react";
import counterpart from "counterpart";
import {Input} from "react-bootstrap";
import Cookies from "cookies-js";
let LocaleSwitcher = React.createClass({
handleChange: function(e) {
counterpart.setLocale(e.target.value);
Cookies.set('locale', e.target.value);
},
render: function() {
return (
<Input
type="select"
className="input-sm"
groupClassName="form-inline form-menu-inline"
defaultValue={counterpart.getLocale()}
onChange={this.handleChange}
>
<option value="en">English</option>
<option value="ru">Русский</option>
</Input>
);
}
});
export default LocaleSwitcher;
FAQs
counterpart locale setting plugin for fluxible
The npm package fluxible-plugin-locale-counterpart receives a total of 1 weekly downloads. As such, fluxible-plugin-locale-counterpart popularity was classified as not popular.
We found that fluxible-plugin-locale-counterpart 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.