BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/openstatus/status-i18n

Status Blocks i18n Provider

openstatus/status-i18n
FreeBlock

React context for supplying translated labels and locale-aware date formatters to status blocks. Optional — blocks fall back to defaultStatusBlocksLabels (en-US) when no provider is mounted.

Install it

npx shadcn@latest add https://openstatus.dev/r/status-i18n.json

Source

src/components/blocks/status-i18n.tsxopenstatus.dev/r/status-i18n.json
1"use client";
2
3import type {
4 StatusReportImpact,
5 StatusReportUpdateType,
6 StatusType,
7 ThemeValue,
8} from "@/components/blocks/status.types";
9import { defaultStatusBlocksLabels } from "@/components/blocks/status.utils";
10import { createContext, useContext } from "react";
11
12/**
13 * Labels and locale-aware formatters consumed by block components.
14 *
15 * Blocks read this via `useStatusBlocksLabels()`. When no provider is mounted,
16 * the hook returns `defaultStatusBlocksLabels` (English, "en-US" formatting).
17 * Apps wanting localized copy should mount `StatusBlocksI18nProvider` and
18 * supply translated strings + locale-aware formatters.
19 */
20export type StatusBlocksLabels = {
21 systemStatus: Record<StatusType, { long: string; short: string }>;
22 incidentStatus: Record<StatusReportUpdateType, string>;
23 requestStatus: Record<StatusType, string>;
24 componentImpact: Record<StatusReportImpact, string>;
25
26 today: string;
27 ongoing: string;
28 reportResolved: string;
29 noRecentNotifications: string;
30 noRecentNotificationsDescription: string;
31 noReports: string;
32 noReportsDescription: string;
33 noPublicMonitors: string;
34 noPublicMonitorsDescription: string;
35
36 themeNames: Record<ThemeValue, string>;
37 ariaToggleTheme: string;
38
39 subscribe: string;
40 subscribeRssDescription: string;
41 subscribeAtomDescription: string;
42 subscribeJsonDescription: string;
43 subscribeSlackDescription: string;
44 subscribeSshDescription: string;
45 linkCopiedToClipboard: string;
46 ariaCopyLink: string;
47
48 poweredBy: string;
49 getInTouch: string;
50
51 ariaStatusTracker: string;
52 ariaDayStatus: (n: number) => string;
53 clickAgainToUnpin: string;
54
55 /** Heading shown on the status-calendar block. */
56 calendarTitle: string;
57
58 durationIn: (s: string) => string;
59 durationEarlier: (s: string) => string;
60 durationFor: (s: string) => string;
61 durationAcross: (s: string) => string;
62
63 formatDate: (d: Date) => string;
64 formatDateShort: (d: Date) => string;
65 formatDateTime: (d: Date) => string;
66 formatDateRange: (from?: Date, to?: Date) => string;
67 /**
68 * Returns the start/end of a closed range as separate strings, so callers
69 * can render each side independently (e.g. wrap each in a hovercard)
70 * without re-parsing the joined output of `formatDateRange`.
71 *
72 * Implementations should collapse same-day ranges (date on `from`, time
73 * only on `to`) the same way `formatDateRange` does.
74 *
75 * Closed ranges only — both `from` and `to` are required. For open-ended
76// … truncated

What it pulls in

Other registry items

  • https://openstatus.dev/r/status-types.json
  • https://openstatus.dev/r/status-utils.json

Files it writes

  • src/components/blocks/status-i18n.tsx

Facts

Registry
openstatus
Type
registry:block
Access
Free
Files written
1
Licence
AGPL-3.0
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

openstatus.dev openstatusHQ/openstatus on GitHub Raw registry item This item as JSON

More from openstatus

All 26 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Status Bannerstatus-banneropenstatusBlocksFreeno deps
Status Barstatus-baropenstatusBlocksFree1 dep
Status Blank Statesstatus-blankopenstatusBlocksFreeno deps
Status Calendarstatus-calendaropenstatusBlocksFree3 deps
Status Page Chromestatus-chromeopenstatusBlocksFreeno deps
Status Page (Complete)status-completeopenstatusBlocksFreeno deps
Status Componentstatus-componentopenstatusBlocksFree2 deps
Status Component Groupstatus-component-groupopenstatusBlocksFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex