Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions data/reference/places.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{"country": "BF", "aliases": ["Ouagadougou", "Bobo-Dioulasso"]},
{"country": "BJ", "aliases": ["Cotonou", "Porto-Novo"]},
{"country": "CD", "aliases": ["RDC", "DRC", "RD Congo", "DR Congo", "Congo Kinshasa", "Kinshasa", "Lubumbashi"]},
{"country": "CG", "aliases": ["Congo Brazzaville", "Brazzaville", "Pointe-Noire"]},
{"country": "CI", "aliases": ["Abidjan", "Yamoussoukro", "RCI"]},
{"country": "CM", "aliases": ["Douala", "Yaoundé"]},
{"country": "GA", "aliases": ["Libreville"]},
{"country": "GH", "aliases": ["Accra", "Kumasi"]},
{"country": "KE", "aliases": ["Nairobi", "Mombasa"]},
{"country": "ML", "aliases": ["Bamako"]},
{"country": "NE", "aliases": ["Niamey"]},
{"country": "NG", "aliases": ["Lagos", "Abuja"]},
{"country": "RW", "aliases": ["Kigali"]},
{"country": "SN", "aliases": ["Dakar"]},
{"country": "TD", "aliases": ["N'Djamena"]},
{"country": "TG", "aliases": ["Lomé"]},
{"country": "TZ", "aliases": ["Dar es Salaam", "Dodoma"]},
{"country": "UG", "aliases": ["Kampala"]},
{"country": "ZA", "aliases": ["Johannesburg", "Le Cap", "Cape Town", "Pretoria"]}
]
16 changes: 15 additions & 1 deletion docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ Status: living document. Settled decisions are in `adr/`.
```
data/
providers/<slug>.json one file per provider, every claim sourced
reference/ countries, currencies, regulators, payment brands
reference/ countries, places, currencies, regulators, payment brands
glossary/ terms of the glossary page, one file per section
registers/ official registers, extracted from the source PDF
LICENSE CC BY-SA 4.0
src/
schema/ zod schemas: the single definition of valid data
lib/ loading and cross-file checks
search/ site search: declarations, index, query reading, window
pages/ static site
scripts/validate-data.ts runs every check, used by CI
tests/ vitest
Expand All @@ -23,6 +24,19 @@ tests/ vitest
The site is a static build of `data/`. Only `verified` records are published;
drafts stay in the repository until a maintainer checks them.

## Search

The search window runs in the browser on one JSON file per language, built
from the same data as the pages. To make something a sheet states searchable,
add an entry to `src/search/features.ts`: its words, its section and a test on
the record. Languages of official SDKs, currencies and regulators are read from
the records and need no declaration.

A method or a currency is matched in the country it is stated for. Unknown is
never a yes, and "without X" is not answered: a silent sheet states nothing.
`reference/places.json` holds other names of a country (cities, acronyms). It
only helps a search understand a word; it asserts nothing about a provider.

## How a contribution becomes a published fact

1. Someone opens an issue form (new provider, correction, experience), or a
Expand Down
Loading
Loading