spree-i18n

spree-i18n is a skill for Claude Code from spree/agent-skills. It costs 133 tokens per session (3,682 once invoked), scanned A, original, MIT.

A translation guide for Spree Commerce, an open-source online-store system. It explains how to translate the store interface as well as product and category content.

In plain words
What is it for?
Use it to add languages, translate products, fix missing text, support right-to-left languages, and build multilingual storefronts.
Why use it?
It clarifies that buttons and messages use one translation system, while merchant-entered catalog content uses another.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the spree plugin — 26 skills, 2 commands, 1 agent, 2 hooks shipped together

Good fit Use it to add languages, translate products, fix missing text, support right-to-left languages, and build multilingual storefronts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/spree/agent-skills/spree-i18n
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add spree/agent-skills --skill spree-i18n
Clone the repo
git clone --depth 1 https://github.com/spree/agent-skills

Made for: Claude Code.

Or install spree, the plugin that ships this one along with the rest of its 26 skills, 2 commands, 1 agent, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spree-i18n

README.md
[![agentmods](https://agentmods.dev/badge/skills/spree/agent-skills/spree-i18n/github.svg)](https://agentmods.dev/skills/spree/agent-skills/spree-i18n)
Your own site
<a href="https://agentmods.dev/skills/spree/agent-skills/spree-i18n"><img src="https://agentmods.dev/badge/skills/spree/agent-skills/spree-i18n/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spree-i18n

Your own site · 80×15
<a href="https://agentmods.dev/skills/spree/agent-skills/spree-i18n"><img src="https://agentmods.dev/badge/skills/spree/agent-skills/spree-i18n.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,682 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00133 $0.03682
Opus 5 $0.00067 $0.01841
Sonnet 5 $0.00027 $0.00736
Haiku 4.5 $0.00013 $0.00368

Measured 10d ago against content hash 8c8a5e8684de, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

spree-i18n scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -H "X-Spree-Api-Key: pk_…" \
skills/spree-i18n/SKILL.md · 296 lines

How it starts

The opening of the file, as written. The whole thing — 296 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spree I18n + Translations

Two distinct translation surfaces, each with its own mechanism:

What Mechanism Where it lives
UI strings (labels, buttons, errors, emails) Standard Rails I18n + Spree.t config/locales/<locale>.yml
Data (product names, category names, descriptions) Mobility gem translation tables spree_<model>_translations tables

You need both for a multilingual store. UI strings are about how the app speaks; data translations are about what merchant content the customer sees.

UI strings — Spree.t and the YAML files

Every Spree gem ships its own English locale file. Spree.t looks up a key scoped under spree.* in the active locale:

Spree.t(:save)                             # => "Save"
Spree.t('i18n.this_file_language')         # => "English (US)"
Spree.t(:paid, scope: 'payment_states')    # => "Paid"
Spree.t(:missing_key, default: 'Fallback') # => "Fallback"

In views / helpers, the shorthand is just Spree.t(...). In ERB templates, you can also use <%= t('.relative_key') %> for lazy lookup based on the controller + action name (standard Rails).

Adding a new UI language

  1. Install the translations gem (community-maintained):

    # Gemfile
    gem 'spree_i18n'   # ships translations for 40+ locales
    

    This adds config/locales/<locale>.yml files for every Spree gem in the bundle.

  2. Add the locale to your store's supported list:

    # backend/config/initializers/spree.rb
    I18n.available_locales = %i[en es fr de it ja]
    I18n.default_locale = :en
    
  3. (Optional) Add the locale to the relevant market's supported_locales so the storefront language switcher offers it. Locales are configured per Market, not on the store:

    store = Spree::Store.default
    store.default_market.update!(supported_locales: ['es', 'fr'])
    

    supported_locales accepts an Array or a comma-separated string; default_locale also lives on the market. When a store has markets (the norm — stores created with a default_country_iso, including seeds and the admin flow, get a default market automatically), market values take precedence: Store#supported_locales_list comes entirely from the markets, and Store#default_locale returns the default market's locale — falling back to the store column only when the market's default_locale is blank. With no markets at all, the store-level columns are used directly.

Read the full file on GitHub · 296 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 296 lines · 133 tokens per session scan A 8c8a5e8684de

Subscribe to this mod's changes

spree-i18n is a skill published in the GitHub repository spree/agent-skills (4 stars, last pushed 2mo ago), licensed MIT. It adds 133 tokens to every session and 3,682 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

tiktok-shop-cross-border

Cross-border selling on TikTok Shop. Market selection, logistics setup, localization strategy, compliance requirements, and international expansion. Use when the user asks about TikTok Shop international selling, cross-border ecommerce, global expansion, or selling in multiple countries.

nexscope-ai/eCommerce-Skills · 55 tokens

amazon-global-selling

Evaluate and plan Amazon marketplace expansion across countries and regions. Use when a seller asks which Amazon marketplace to enter, how to compare international demand and economics, what tax, product-compliance, logistics, localization, account, or launch workstreams to investigate, or how to build a gated…

nexscope-ai/Amazon-Skills · 78 tokens

localization-testing

AI-powered localization and internationalization testing skill for e-commerce sites. Designs multi-language QA frameworks, currency validation checks, shipping info verification, and regional compliance audits.

nexscope-ai/eCommerce-Skills · 0 tokens

shopify-international

Shopify Markets — multi-currency, translation, duties/taxes, localized pricing, market-specific content.

nexscope-ai/eCommerce-Skills · 25 tokens

amazon-international-listings

Multi-marketplace listing management — translation, pricing localization, BIL (Build International Listings).

nexscope-ai/Amazon-Skills · 24 tokens