Expand ecash explorer capabilities
Add Fedimint discovery, dual SQLite/Postgres storage, richer review handling, and generated social imagery.
This commit is contained in:
@@ -77,6 +77,8 @@ export interface Formatters {
|
||||
serverTime(unix: number): string;
|
||||
/** Grouped: 1,000,000 in English, 1.000.000 in Spanish and Dutch. */
|
||||
number(n: number): string;
|
||||
/** Compact: "500K" / "500 mil", for a limit quoted inside a meta description. */
|
||||
compact(n: number): string;
|
||||
/** A rating to one decimal, with the locale's own decimal separator. */
|
||||
decimal(n: number, digits?: number): string;
|
||||
}
|
||||
@@ -159,6 +161,9 @@ export function formatters(t: Translator): Formatters {
|
||||
|
||||
number: (n) => numberFormat(tag).format(n),
|
||||
|
||||
compact: (n) =>
|
||||
new Intl.NumberFormat(tag, { notation: 'compact', maximumFractionDigits: 1 }).format(n),
|
||||
|
||||
decimal: (n, digits = 1) =>
|
||||
new Intl.NumberFormat(tag, {
|
||||
minimumFractionDigits: digits,
|
||||
|
||||
Reference in New Issue
Block a user