Stop Keeping Your Own Country and Currency Tables¶
Every app that sells, ships or schedules ends up with the same tables: country names for the address form, currency symbols for prices, time zones for appointments, units for product weights. Somebody copies a list from a gist, it covers English, and the first customer in Germany sees "Germany" in a German form. Then a country changes its name, and nobody updates the gist.
Your objects already store the right codes: DE, EUR, KGM, Europe/Berlin. What's missing is what they mean.
One address, every language¶
ObjectsGrid's reference data is a public API with no account, no key and no bill:
{"code": "RO", "alpha3": "ROU", "numeric": "642", "name": "Rumänien", "currencies": ["RON"],
"languages": ["ro"], "region": "151", "continent": "150", "flag": "🇷🇴", "meta": {"revision": "2026-12", ...}}
Seven datasets, each by its standard: countries (ISO 3166-1), subdivisions (ISO 3166-2), languages (ISO 639), currencies (ISO 4217), time zones (IANA), locales (BCP 47) and units (UN/CEFACT Rec 20). The names come from Unicode CLDR, the data behind every operating system's language settings, in about 270 languages and regional variants. The Reference data pages list every code.
Pickers that understand people¶
The hardest part of a country picker isn't the list, it's the matching. A French user types "allem"; a German user
types "Deutsch"; someone types "usa", or "romania" without the â. Every list takes search, and handles all of them:
curl 'https://apis.objectsgrid.com/referencedata/countries?search=allem&lang=fr' # Allemagne
curl 'https://apis.objectsgrid.com/referencedata/countries?search=usa' # United States
curl 'https://apis.objectsgrid.com/referencedata/timezones?search=zurich' # Europe/Zurich
It matches codes, names in every language and a reviewed list of other names (UK, Holland, Ivory Coast), ignores case
and accents, matches the start of any word, and puts names in your user's language first. Each result says what
matched, so the picker can show why DE came up for "deutsch".
Codes that never break¶
Reference data has a habit of changing under you: Swaziland became Eswatini, the Deutsche Mark became the euro,
Asia/Calcutta became Asia/Kolkata. Two rules keep stored data safe:
- A code never disappears. A withdrawn country or currency stays, marked
withdrawnwith its date and what replaced it. A time zone's old name finds its zone. - A revision never changes. The data is versioned by month (
?revision=2026-12); pin one, and your answers stay the same forever, cacheable for a year. Without it, you get the newest.
Resolved where you read your data¶
In GraphQL, every code field your objects store has a companion that resolves it, in the language you ask for:
query {
product(id: "p-123") {
countryOfOriginInfo(lang: "fr") { name flag }
weight { value unitCodeInfo(lang: "de") { name symbol } }
}
offer(id: "o-1") { price priceCurrencyInfo { symbol digits } }
}
Your stored data doesn't change: countryOfOrigin is still "DE". The companion is computed on read, from memory,
and costs nothing extra. See Reference data for where, revisions and the GraphQL
queries.