statusJson function
GET /api/status payload. Reuses the M6 computeStatus math so the
dashboard footer and the dialect status CLI agree byte-for-byte.
Implementation
Map<String, Object?> statusJson(DialectProject project) {
final rows = computeStatus(project);
return {
'rows': [
for (final r in rows)
{
'locale': r.locale,
'coverage': r.coverage,
'missing': r.missing,
'stale': r.stale,
'locked': r.locked,
},
],
};
}