/vtex-ai-skills:vtex-io-messages-and-i18nfrom vtex-ai-skills
Implements localization and translated copy in VTEX IO apps using the messages builder, translation files, and vtex.messages integration. Use for storefront, admin, or backend flows needing runtime translation instead of hardcoded strings.
Ships in vtex-ai-skills. 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.
Use this skill when a VTEX IO app needs translated copy instead of hardcoded strings.
/messages/*.json translation filescontext.jsonvtex.messagesDo not use this skill for:
messages builder and translation files for user-facing copy instead of hardcoding labels, button text, or UI messages in source code.title or button. The exact format may vary, but keys should remain specific, descriptive, and clearly owned by the app.store/... for storefront messages and admin/... for Admin or Site Editor messages, so keys stay organized and do not collide across contexts./messages/context.json so VTEX IO can discover and manage the app’s translation surface. Keep it as a flat map of messageId -> description and include the keys the app actually uses.vtex.messages only when the app truly needs to customize translation behavior or message resolution beyond normal app-local message files.User-facing strings MUST come from the messages infrastructure instead of being hardcoded in components, handlers, or resolvers.
Why this matters
Hardcoded copy breaks localization, makes message review harder, and creates inconsistent behavior across storefront, Admin, and backend flows.
Detection
If you see labels, buttons, headings, alerts, or other user-facing text embedded directly in JSX or backend response formatting for a localized app, STOP and move that copy to message files.
Correct
<FormattedMessage id="admin/my-app.save" />
Wrong
<button>Save</button>
Message keys MUST be app-scoped and represented in the app’s message configuration instead of being invented ad hoc in code.
Why this matters
Unstructured keys become hard to maintain, collide across app areas, and make message ownership unclear.
Detection
If code introduces new message IDs with no corresponding translation files or context.json entry, STOP and add the message contract explicitly.
Correct
{
"admin/my-app.save": "Save"
}
Wrong
{
"save": "Save"
}
Translation files MUST contain localized copy, not operational configuration, secrets, or large content payloads.
Why this matters
The messages infrastructure is designed for translated strings. Using it for other data creates maintenance confusion and mixes localization concerns with configuration or content storage.
Detection
If message files contain API URLs, credentials, business rules, or long structured content blobs, STOP and move that data to app settings, configuration apps, or a content-specific mechanism.
Correct
{
"store/my-app.emptyState.title": "No records found"
}
Wrong
{
"apiBaseUrl": "https://partner.example.com",
"featureFlags": {
"betaMode": true
}
}
Recommended file layout:
.
├── messages/
│ ├── context.json
│ ├── en.json
│ └── pt.json
└── react/
└── components/
└── SaveButton.tsx
Minimal messages setup:
// messages/context.json
{
"admin/my-app.save": "Label for the save action in the admin settings page"
}
// messages/en.json
{
"admin/my-app.save": "Save",
"store/my-app.emptyState.title": "No records found"
}
// messages/pt.json
{
"admin/my-app.save": "Salvar"
}
import { FormattedMessage } from 'react-intl'
export function SaveButton() {
return <FormattedMessage id="admin/my-app.save" />
}
Backend or GraphQL translation pattern:
scalar IOMessage
type ProductLabel {
id: ID
label: IOMessage
}
type Query {
productLabel(id: ID!): ProductLabel
}
export const resolvers = {
Query: {
productLabel: async (_: unknown, { id }: { id: string }) => {
return {
id,
label: {
content: 'store/my-app.product-label',
description: 'Label for product badge',
from: 'en-US',
},
}
},
},
}
Keep a complete en.json as the default fallback, even when the app’s main audience uses another locale, so the messages system has a stable base for resolution and auto-translation behavior.
Use translated IDs in code, keep translation files explicit, and centralize user-facing copy in the messages system instead of scattering literals through the app.
context.json or the message files.title, save, or button.vtex.messages overrides as the default path instead of app-local message management.context.json reflect the translation surface used by the app?vtex.messages truly necessary for this app?vtex-io-storefront-react - Use when the main question is storefront component structure and shopper-facing UI behaviorvtex-io-admin-react - Use when the main question is Admin UI structure and operational interaction patternsvtex-io-graphql-api - Use when the main question is GraphQL schema and resolver design rather than translation infrastructurevtex.messages workWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
vtex-io, localization, i18n, translation-files, messages-builder
npx claudepluginhub vtex/skills --plugin vtex-ai-skills46 skills in this plugin
/architecture-well-architected-commerceApply when scoping, reviewing, or documenting cross-cutting VTEX commerce architecture across storefront, IO, headless, marketplace, payments, or any other VTEX module. Grounds work in the Well-Architected Commerce framework—Technical Foundation (reliability, trust, integrity; security, infrastructure, compliance), Future-proof (innovation, simplicity, efficiency; scalable and adaptable solutions), and Operational Excellence (accuracy, accountability, data-driven improvement; process and customer experience). Routes implementation detail to product tracks (IO caching and paths, Master Data strategy, marketplace integrations). Use for solution design, architecture reviews, and RFP-level technical structure./faststore-storefrontCore coding rules and workflow for developing VTEX FastStore storefronts. Use when starting any FastStore development task, writing TypeScript/React components, creating section overrides, extending the BFF, or styling. Covers all primary conventions, safety rules, and the development workflow used across every FastStore project./headless-bff-architectureApply when designing or modifying a BFF (Backend-for-Frontend) layer, middleware, or API proxy for a headless VTEX storefront. Covers BFF middleware architecture, public vs private API classification, VtexIdclientAutCookie management, API key protection, and secure request proxying. Use for any headless commerce project that must never expose VTEX_APP_KEY or call private VTEX APIs from the browser./headless-caching-strategyApply when implementing caching logic, CDN configuration, or performance optimization for a headless VTEX storefront. Covers which VTEX APIs can be cached (Intelligent Search, Catalog) versus which must never be cached (Checkout, Profile, OMS), stale-while-revalidate patterns, cache invalidation, and BFF-level caching. Use for any headless project that needs TTL rules and caching strategy guidance./headless-checkout-proxyApply when implementing cart, checkout, or order placement logic proxied through a BFF for headless VTEX storefronts. Covers OrderForm lifecycle, cart creation, item management, profile/shipping/payment attachments, orderFormId management, and secure checkout flows. Use for any headless frontend that needs to proxy VTEX Checkout API calls through a server-side layer with proper session cookie handling./headless-intelligent-searchApply when implementing search functionality, faceted navigation, or autocomplete in a headless VTEX storefront. Covers product_search, autocomplete_suggestions, facets, banners, correction_search, and top_searches endpoints, plus analytics event collection. Use for any custom frontend that integrates VTEX Intelligent Search API for product discovery and search result rendering.Other plugins' skills for the same job