Imperial-to-Metric Product Spec Converter for Cross-Border Listings & Labels
Leaving '24 fl oz, 10.5 in, 1.1 lbs, 35°F' untranslated in European, Japanese, or Latin American catalogs causes buyer confusion, dimension mismatches, and regulatory packaging rejections. Convert every unit deterministically in pure Python stdlib.
Why LLM Unit Rewrites Cause Dimension & Net-Weight Errors
Asking a generic chat model to 'localize this listing for Germany' frequently rounds 24 fl oz to 700 ml instead of 710 ml, confuses dry ounces (28.3495 g) with US fluid ounces (29.5735 ml), or leaves Fahrenheit storage temperatures unconverted.
Localize-Anything extracts physical measurements via deterministic parsers, applies exact conversion constants, preserves dual US declarations (e.g. '2.4 oz (68 g)') when targeting US 21 CFR food labels, and outputs clean metric specs for UK, EU-DE, EU-FR, JP, LATAM-BR, and LATAM-MX.
Supported Conversion Dimensions Across 5 Carriers
Length & Dimensions
Converts inches (in), feet (ft), and yards (yd) to millimeters (mm), centimeters (cm), and meters (m) for shipping boxes and product specs.
Dry Weight & Mass
Converts ounces (oz) and pounds (lbs) to grams (g) and kilograms (kg) with precision tailored to food labels and freight specs.
Liquid Volume
Converts US fluid ounces (fl oz), pints, quarts, and gallons into milliliters (ml) and liters (L) without mixing dry vs. fluid ounces.
Temperature & Apparel Sizing
Converts Fahrenheit (°F) storage/cold-retention claims into Celsius (°C) and adds US/UK/EU/JP size mapping hints.
Actionable Engineering Checklist
- Always distinguish fluid ounces (fl oz -> ml) from net weight ounces (oz -> g) on beverage and cosmetic labels.
- For US food and supplement labels (21 CFR 101), retain dual declaration: both avoirdupois (oz/lb) and metric (g/kg/ml).
- For EU-DE, EU-FR, UK, JP, BR, and MX, lead with metric units (cm, g, kg, ml, L, °C) in titles and bullet points.
- Include metric Grundpreis / unit-price base quantities (per 100 g or per 1 L) where required in Germany and France.
Deterministic Conversion Constants Used by Localize-Anything
Exact conversion factors applied before market-specific formatting.
| Imperial Input | Metric Output | Sample Input -> Localized Output | Target Markets |
|---|---|---|---|
| 1 in (inch) | 2.54 cm | 10.5 in -> 26.7 cm | UK, EU-DE, EU-FR, JP, BR, MX |
| 1 ft (foot) | 30.48 cm / 0.3048 m | 6 ft -> 1.83 m | UK, EU-DE, EU-FR, JP, BR, MX |
| 1 oz (mass) | 28.3495 g | 2.4 oz -> 68 g | All 7 (dual on US 21 CFR) |
| 1 lb (pound) | 0.4536 kg (453.6 g) | 1.1 lbs -> 499 g (0.50 kg) | UK, EU-DE, EU-FR, JP, BR, MX |
| 1 US fl oz | 29.5735 ml | 24 fl oz -> 710 ml | UK, EU-DE, EU-FR, JP, BR, MX |
| °F -> °C | (°F - 32) × 5/9 | 35°F -> 1.7°C (350°F -> 177°C) | UK, EU-DE, EU-FR, JP, BR, MX |
Working REST API, Streamable /mcp & hreflang Examples
1. REST API Call (POST https://localize.fastmesh.dev/v1/localize)
curl -fsSL -X POST "https://localize.fastmesh.dev/v1/localize" \
-H "Content-Type: application/json" \
-d '{"carrier": "ecommerce_listing", "base_price_usd": 34, "target_markets": ["UK","EU-DE","JP"], "content": "Insulated Flask 24 fl oz, 10.5 in tall, 1.1 lbs, keeps ice water at 35F for 24 hours.", "tenant_id": "unit_converter_ops"}'
2. Native AI Agent Call (POST https://localize.fastmesh.dev/mcp · JSON-RPC 2.0)
curl -fsSL -X POST "https://localize.fastmesh.dev/mcp" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":5,"method":"tools/call","params":{"name":"localize_anything","arguments":{"carrier":"packaging_label","target_markets":["EU-DE","EU-FR"],"content":"Cold Brew Coffee 12 fl oz. Store below 40F. Net Wt 12 fl oz.","tenant_id":"label_agent"}}}'
3. Reciprocal 7-Market <link rel="alternate" hreflang="..."> Output Example
<link rel="canonical" href="https://example-store.com/specs/insulated-flask" /> <link rel="alternate" hreflang="en-US" href="https://example-store.com/us/specs/insulated-flask" /> <link rel="alternate" hreflang="en-GB" href="https://example-store.com/uk/specs/insulated-flask" /> <link rel="alternate" hreflang="de-DE" href="https://example-store.com/de/specs/insulated-flask" /> <link rel="alternate" hreflang="fr-FR" href="https://example-store.com/fr/specs/insulated-flask" /> <link rel="alternate" hreflang="ja-JP" href="https://example-store.com/jp/specs/insulated-flask" /> <link rel="alternate" hreflang="pt-BR" href="https://example-store.com/br/specs/insulated-flask" /> <link rel="alternate" hreflang="es-MX" href="https://example-store.com/mx/specs/insulated-flask" /> <link rel="alternate" hreflang="x-default" href="https://example-store.com/specs/insulated-flask" />
OpenAPI 3.1: /openapi.json · Agent Skill: /skill.md · Machine Directory: /llms.txt · Treg Hub: localize-anything-crossborder (0% seller commission) · Causal Bazaar: localize_anything_crossborder_v1
Zero-Failure $0 Billing, Privacy Pledge & Never-Expiring Packs
billable: false and charge_usd: 0.0 with deterministic receipt_sha256 verification.Zero Customer Asset Reselling Pledge: Customer inputs and localized outputs are never resold or used to train external models. Compliance outputs are automated engineering pre-screening only (not legal/tax advice).
Starter Pack
$19.00 credit (19M micros · 380 full localizations / 1,900 PPP runs) · Never expires
Get Starter PackGrowth Pack
$90.00 credit (90M micros · 1,800 full localizations / 6,000 batch SKUs) · Never expires
Get Growth PackScale Pack
$325.00 credit (325M micros · 6,500 full localizations / 21,666 batch SKUs) · Never expires
Get Scale PackFrequently Asked Questions
Does the converter confuse oz (weight) with fl oz (volume)?
No. Deterministic unit rules parse 'fl oz' separately from 'oz' / 'net wt' so liquids convert to milliliters/liters while solids convert to grams/kilograms.
Can it process 50+ SKUs in a single CSV upload?
Yes. Send CSV or JSON arrays to POST /v1/batch-localize to convert units, compute PPP pricing, and run compliance checks across every valid SKU.
What if a row has no measurements or is blank?
Completely empty or malformed rows are isolated as unbilled rows at $0.00 cost.