Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
rosetty-solid
Advanced tools
[![Maintainability](https://api.codeclimate.com/v1/badges/a777c53f5370b6900930/maintainability)](https://codeclimate.com/github/qlaffont/rosetty-solid/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/a777c53f5370b6900930/test_cover
Complete Intl/I18n solution for Solid based on Rosetty
//In your app.js file, add the following code:
import { RosettyProvider } from 'rosetty-solid';
import fr from 'dayjs/locale/fr';
const locales = { fr: { dict: {}, locale: fr } };
const defaultLanguage = 'fr';
const App = ({ children }) => (
<RosettyProvider locales={locales} defaultLanguage={defaultLanguage}>
{children}
</RosettyProvider>
);
module.exports = App;
//In your components file, add the following code:
import { useRosetty } from 'rosetty-solid';
const Home = () => {
const { t } = useRosetty();
return <h1>{t('home')}</h1>;
};
module.exports = Home;
Options
Field Name | Type | Description |
---|---|---|
locales | Record<string, Language> | Specify dictionnary and locale to use for each lang |
defaultLanguage | string? | Specify default language to use (should be the same as config) |
Return: Rosetty Context HOC + {actualLang: string} who contain your current language
Return a component who instantiate the Rosetty Context.
You need to import locale from dayjs
package.
const fr = require('dayjs/locale/fr');
This package use TSdx. Please check documentation to update this package.
FAQs
[![Maintainability](https://api.codeclimate.com/v1/badges/a777c53f5370b6900930/maintainability)](https://codeclimate.com/github/qlaffont/rosetty-solid/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/a777c53f5370b6900930/test_cover
The npm package rosetty-solid receives a total of 1,014 weekly downloads. As such, rosetty-solid popularity was classified as popular.
We found that rosetty-solid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.