
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
wuthery-l10n
Advanced tools
Storage of localization files for Wuthery services, with Python and TS packages to interact with the data
# Clone the repo
git clone https://github.com/Wuthery/l10n
# Install the dependencies
cd l10n
poetry install --with dev --no-root
# If you want to run the tests locally
poetry install --with test --no-root
# Install pre-commit
pre-commit install
# Clone the repo
git clone https://github.com/Wuthery/l10n
# Install the dependencies
cd wuthery-l10n
npm i
# Install the package
poetry add wuthery.l10n
from wuthery.l10n import Translator, Language
async with Translator() as translator:
translation = translator.translate(2, Language.EN_US, variable="Wuthery")
# Install the package
npm i wuthery-l10n
On server side (layout.tsx):
import { I18nProvider, Language } from 'wuthery-l10n/client';
import {
LANGUAGE_KEY,
detectReqLanguage,
fetchTranslation,
} from 'wuthery-l10n/server';
import { getCookie } from 'cookies-next';
import { headers, cookies } from 'next/headers';
const Layout = async ({
children,
}: Readonly<{
children: React.ReactNode;
}>) => {
let language = getCookie(LANGUAGE_KEY, { cookies }) as Language || undefined;
if (!language) {
const reqHeaders = headers();
language = detectReqLanguage(reqHeaders.get('accept-language') || '');
}
const translation = await fetchTranslation(language);
return (
<I18nProvider
initialLanguage={language}
initialTranslations={{[language]: translation}}
>
<html>
<body>
{children}
</body>
</html>
</I18nProvider>
);
};
export default Layout;
In component:
'use client';
import { useTranslation, Language } from 'wuthery-l10n/client';
const Component = () => {
const { changeLanguage, t, language } = useTranslation();
return (
<div>
<h1>{t('test_str', {'variable': 0})}</h1>
<button onClick={() => changeLanguage(language == Language.ZH_TW ? Language.EN_US : Language.ZH_TW)}>Change language</button>
</div>
);
};
export default Component;
- instead of _ to seperate words, e.g. test-str instead of test_str/ to seperate scopes, e.g. scope/test-strFAQs
Typescript package to interact with Wuthery's localization files.
The npm package wuthery-l10n receives a total of 5 weekly downloads. As such, wuthery-l10n popularity was classified as not popular.
We found that wuthery-l10n 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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.