/vechain-ai:translatefrom vechain-ai
Manages react-i18next translation files across 15 languages: adds/removes keys, sorts alphabetically, enforces fixed-word rules, and verifies sync with en.json.
Ships in vechain-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Manages translation files in apps/frontend/src/i18n/languages/.
{{variableName}}react-i18next configured in apps/frontend/src/i18n/index.tsxapps/frontend/src/i18n/index.tsx (languages array)en.json with the English valueen.jsonFor each .json file in apps/frontend/src/i18n/languages/:
Use a Node.js script or jq to sort. Example with Node.js:
node -e "
const fs = require('fs');
const glob = require('glob');
const files = glob.sync('apps/frontend/src/i18n/languages/*.json');
files.forEach(f => {
const obj = JSON.parse(fs.readFileSync(f, 'utf8'));
const sorted = Object.keys(obj)
.sort((a, b) => a.localeCompare(b, undefined, { sensitivity: 'base' }))
.reduce((acc, key) => { acc[key] = obj[key]; return acc; }, {});
fs.writeFileSync(f, JSON.stringify(sorted, null, 2) + '\n');
});
"
After any translation change, verify:
en.json has all keys that exist in code (search for t("...") usage)en.jsonen.json) should be removedSee apps/frontend/src/i18n/fixedWords.json. Grouped by language code ("all" applies to every language).
Two use cases:
"round": "round" keeps "round" in English for Italian)"endorsement": "supporto" means always use "supporto" for endorsement in Italian)When translating, ALWAYS check this file first. If a word has a fixed translation for the target language, use it consistently in every sentence.
If the app uses @vechain/vechain-kit, keep Kit UI language in sync with the host app:
VeChainKitProvider, subscribe to i18n.on("languageChanged", ...) and call setLanguage(lng) from useCurrentLanguage() so when the user changes language in the app (e.g. footer selector), Kit updates.language={i18n.language} and onLanguageChange={(lng) => i18n.changeLanguage(lng)} into VeChainKitProvider so when the user changes language in Kit (e.g. wallet modal), the app updates.See the vechain-kit skill reference translations-vechain-kit.md for the full implementation pattern.
en.json never used in code (t("..."), i18nKey="...") and exit non-zero so pre-commit fails. Run when en.json or code is staged.en.json and fails if any locale has missing or extra keys. Run when any translation file is staged or in CI.eslint-plugin-i18next (or similar) to flag missing keys in the editor/lint.See the vechain-kit skill reference translations-vechain-kit.md for a short summary table.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
17 skills in this plugin
/auto-voting-relayersComplete domain knowledge for VeBetterDAO's auto-voting and relayer system. Use when working on relayer dashboard, relayer node, auto-voting contracts (XAllocationVoting, VoterRewards, RelayerRewardsPool), or anything related to relayers, auto-voting, gasless voting, or relayer rewards. Triggers on: relayer, auto-voting, autovoting, gasless voting, relayer rewards, RelayerRewardsPool, castVoteOnBehalfOf, castNavigatorVote, relayer dashboard, relayer node, veDelegate comparison./create-vechain-dappScaffold a VeChain dApp with Next.js, VeChain Kit, Chakra UI v3, and GitHub Pages deployment. Supports standalone (frontend-only) or monorepo (Turbo + Hardhat contracts) modes. Use when creating a new VeChain project, scaffolding a dApp, setting up a VeChain frontend, or bootstrapping a VeChain monorepo./npx claudepluginhub vechain/vechain-ai-skills --plugin vechain-coreOther plugins' skills for the same job