193 lines
10 KiB
TypeScript
193 lines
10 KiB
TypeScript
export const DEFAULT_LANG = 'en_US'
|
|
|
|
const dict = {
|
|
// main.ts
|
|
'Starting Spaces!': 0,
|
|
'Web Interface': 1,
|
|
'The web terminal is ready': 2,
|
|
'The web terminal is not ready': 3,
|
|
'Spaced RPC': 4,
|
|
'spaced RPC is ready': 5,
|
|
'spaced RPC is not ready': 6,
|
|
'Spaced Sync': 7,
|
|
'spaced is querying Bitcoin and indexing — this can take a while on first run.':
|
|
8,
|
|
'spaced is fully synced (blocks ${blocks} / headers ${headers}).': 9,
|
|
'spaced is indexing: ${pct}% (blocks ${blocks} / headers ${headers}).': 10,
|
|
'getserverinfo non-JSON. stdout=${stdout} stderr=${stderr}': 11,
|
|
'Spaced Sync health check crashed: ${error}': 53,
|
|
'space-cli exited ${code}: ${error}': 54,
|
|
'Show Space-CLI Web UI Password': 55,
|
|
'Display the existing username and password for the Spaces web terminal.':
|
|
56,
|
|
Database: 57,
|
|
'postgres is ready': 58,
|
|
'postgres is not ready': 59,
|
|
'Show Database Credentials': 60,
|
|
'Display the PostgreSQL username, password, database, and connection URL.':
|
|
61,
|
|
'Reset Database State': 62,
|
|
'Wipe /data/postgres so PostgreSQL re-initializes from scratch.': 63,
|
|
'This deletes all PostgreSQL data on disk. The next start will re-create an empty database. store.json (passwords + RPC credentials) is preserved.':
|
|
64,
|
|
'PostgreSQL data has been wiped. Start (or restart) the service to re-initialize the database.':
|
|
65,
|
|
'Could not wipe PostgreSQL state: ${error}': 66,
|
|
'Use these credentials to connect to the Spaces PostgreSQL database (loopback only inside the container).':
|
|
67,
|
|
'Connection URL': 68,
|
|
'Indexer Process': 69,
|
|
'indexer process is running': 70,
|
|
'Indexer Sync': 71,
|
|
'indexer psql exited ${code}: ${error}': 72,
|
|
'indexer has not run a sync cycle yet.': 73,
|
|
'indexer has not yet committed any blocks (spaced tip ${tip}).': 74,
|
|
'indexer caught up at block ${end} (spaced tip ${tip}).': 76,
|
|
'indexer at block ${end}, ${lag} behind spaced tip ${tip}.': 77,
|
|
'Indexer Sync health check crashed: ${error}': 78,
|
|
'Reset Indexer State': 79,
|
|
'Wipe /data/explorer-indexer so the next start re-fetches the indexer source and rebuilds the sync + goose binaries.':
|
|
80,
|
|
'This deletes the cached indexer source and compiled binaries. The next start will need internet access to re-download from GitHub and to fetch Go modules. PostgreSQL data (the indexed blocks themselves) is preserved — use Reset Database State if you also want to clear that.':
|
|
81,
|
|
'Indexer cache has been wiped. Start (or restart) the service to re-fetch and rebuild from GitHub.':
|
|
82,
|
|
'Could not wipe indexer state: ${error}': 83,
|
|
'Enable Embedded Explorer': 84,
|
|
'Turn on the embedded PostgreSQL + Go indexer. Spaces protocol data (blocks, transactions, spaces, rollouts) will be indexed locally for use by the future explorer web UI. Service restarts automatically.':
|
|
85,
|
|
'Embedded explorer enabled. The service is restarting; the indexer will begin fetching blocks shortly. First-time start can take several minutes for the Go build.':
|
|
86,
|
|
'Disable Embedded Explorer': 87,
|
|
'Stop the embedded PostgreSQL + Go indexer. Indexed data on disk (/data/postgres, /data/explorer-indexer) is preserved and will be reused if the explorer is re-enabled later. Service restarts automatically.':
|
|
88,
|
|
'Embedded explorer disabled. The service is restarting in spaces-only mode (spaced + web terminal). Run "Enable Embedded Explorer" to turn it back on.':
|
|
89,
|
|
'Explorer Web UI': 90,
|
|
'explorer UI is ready': 91,
|
|
'explorer UI is not ready': 92,
|
|
'SvelteKit explorer for the Spaces protocol. Reads from the embedded PostgreSQL populated by the indexer. Only useful while the embedded explorer is enabled.':
|
|
93,
|
|
'Reset Explorer UI State': 94,
|
|
'Wipe /data/explorer-ui so the next start re-fetches the explorer source and rebuilds it from scratch.':
|
|
95,
|
|
'This deletes the cached explorer source and the built SvelteKit bundle. The next start will need internet access to re-download from GitHub and to fetch npm dependencies. PostgreSQL data is preserved.':
|
|
96,
|
|
'Explorer cache has been wiped. Start (or restart) the service to re-fetch and rebuild from GitHub.':
|
|
97,
|
|
'Could not wipe explorer state: ${error}': 98,
|
|
'Subspaces Prover': 99,
|
|
'subs-prover is ready': 100,
|
|
'subs-prover is not ready': 101,
|
|
'Subspaces Web UI': 102,
|
|
'subspaces UI is ready': 103,
|
|
'subspaces UI is not ready': 104,
|
|
'Off-chain Bitcoin handles via the Spaces protocol (spacesops/subs). Talks to the local spaced over loopback RPC. Only useful while Subspaces is enabled.':
|
|
105,
|
|
'Subspaces Registry': 117,
|
|
'registry-server is ready': 118,
|
|
'registry-server is not ready': 119,
|
|
'RISC Zero prover server for Subspaces (no GPU). Generates the cryptographic proofs the Subspaces UI requests. Only useful while Subspaces is enabled.':
|
|
120,
|
|
'Registry server for publishing and resolving Subspaces handles. Only useful while Subspaces is enabled.':
|
|
121,
|
|
'Enable Subspaces': 106,
|
|
'Turn on the embedded Subspaces service (off-chain Bitcoin handles). Starts three prebuilt daemons — subs (Web UI), subs-prover, and registry-server — each on its own interface. Service restarts automatically. subs loads the existing `default` spaces wallet; create it first via the Space-CLI Web UI (`spaces createwallet`) if you have not already.':
|
|
107,
|
|
'Subspaces enabled. The service is restarting; the Subspaces Web UI (7777), Prover (8888), and Registry (8081) interfaces come up once their daemons are healthy.':
|
|
108,
|
|
'Disable Subspaces': 109,
|
|
'Stop the embedded Subspaces service. The compiled binaries and data at /data/subspaces are preserved and will be reused if Subspaces is re-enabled. Service restarts automatically.':
|
|
110,
|
|
'Subspaces disabled. The service is restarting; the Subspaces Web UI is no longer listening. Run "Enable Subspaces" to turn it back on.':
|
|
111,
|
|
'Reset Subspaces State': 112,
|
|
'Wipe /data/subspaces so the next start re-creates empty Subspaces data, prover, and registry directories.':
|
|
113,
|
|
'This deletes all local Subspaces state — any handles/proofs stored on disk will be lost. The binaries ship in the image, so nothing needs to be re-downloaded. The spaces wallet on spaced is preserved.':
|
|
114,
|
|
'Could not wipe Subspaces state: ${error}': 115,
|
|
'Subspaces cache and data have been wiped. Start (or restart) the service to re-fetch and rebuild from GitHub.':
|
|
116,
|
|
Certrelay: 122,
|
|
'certrelay is ready': 123,
|
|
'certrelay is not ready': 124,
|
|
'Certrelay serves cryptographic proofs binding Bitcoin-anchored handles to owner keys. SETUP NOTE: run the "Configure Certrelay" action and set CERTRELAY_SELF_URL to the publicly visible URL StartOS exposes for this interface (your clearnet domain or .onion address) — peers and clients reach this relay at that URL.':
|
|
125,
|
|
'Configure Certrelay': 126,
|
|
'Set the certrelay self URL, bootstrap toggle, and healthcheck handle. Saving restarts the service so certrelay picks up the new values.':
|
|
127,
|
|
'Certrelay Self URL': 128,
|
|
'The publicly visible URL clients use to reach this certrelay (CERTRELAY_SELF_URL). Set this to match the external address StartOS exposes for the Certrelay interface (e.g. your .onion or clearnet domain).':
|
|
129,
|
|
'Certrelay Bootstrap': 130,
|
|
'Whether this relay bootstraps from peer relays on startup (CERTRELAY_BOOTSTRAP).':
|
|
131,
|
|
'Certrelay Healthcheck Handle': 132,
|
|
'A handle the bundled fabric CLI resolves against this relay to verify end-to-end health (CERTRELAY_HEALTHCHECK_HANDLE).':
|
|
133,
|
|
'Certrelay configuration saved. The service is restarting to apply the new settings.':
|
|
134,
|
|
|
|
// interfaces.ts
|
|
'Space-CLI Web UI': 12,
|
|
'Browser terminal that exposes space-cli inside the Spaces container.': 13,
|
|
|
|
// dependencies.ts / tasks
|
|
'Spaces needs RPC credentials in Bitcoin': 14,
|
|
'Spaces needs an admin password for the web terminal': 15,
|
|
|
|
// actions
|
|
'Reset Space-CLI Web UI Password': 16,
|
|
'Generate a new admin password for the Spaces web terminal': 17,
|
|
'Show Space-CLI Web UI Credentials': 18,
|
|
'Display the username and password for the Spaces web terminal': 19,
|
|
'Set up Bitcoin RPC': 20,
|
|
'Re-run the bitcoind RPC credential setup for Spaces': 21,
|
|
'Sync Status': 22,
|
|
"Query spaced's getserverinfo RPC and report sync progress": 23,
|
|
Username: 24,
|
|
Password: 25,
|
|
Success: 26,
|
|
Failure: 27,
|
|
'Bitcoin RPC credentials have been re-sent to bitcoind.': 28,
|
|
'Could not call bitcoind. Is Bitcoin installed and running?': 29,
|
|
'Could not query spaced. Is the service running?': 30,
|
|
'Use these credentials to log in to the Spaces web terminal.': 31,
|
|
|
|
// manifest description fields
|
|
'Sovereign Bitcoin identities.': 32,
|
|
|
|
// misc
|
|
'Configure your Spaces web terminal password': 33,
|
|
'Reset Spaced State': 34,
|
|
"Wipe /data/mainnet/ so spaced resyncs its index from spaces' anchor.": 35,
|
|
"This deletes spaced's on-disk index. The next start will resync from spaces' anchor and can take a while. store.json (passwords + RPC credentials) is preserved.":
|
|
36,
|
|
'Spaced state has been wiped. Start (or restart) the service to resync.': 37,
|
|
'Could not wipe spaced state: ${error}': 38,
|
|
'Export Wallet': 39,
|
|
"Export the `default` spaces wallet to /data/mainnet/wallets_backup/default.json and surface the JSON below.":
|
|
40,
|
|
'Could not export wallet: ${error}': 41,
|
|
'Wallet exported.': 42,
|
|
'Wallet JSON': 43,
|
|
'A copy of this JSON is saved inside the container at /data/mainnet/wallets_backup/default.json.':
|
|
44,
|
|
'Import Wallet': 45,
|
|
'Restore a previously-exported default.json wallet into spaced.': 46,
|
|
'Existing /data/mainnet/wallets_backup/default.json and /data/mainnet/wallets/default will be renamed with .bakNNN suffixes before the import. The active spaced daemon will load the imported wallet on success.':
|
|
47,
|
|
'Paste the JSON contents of a default.json wallet export.': 48,
|
|
'Could not parse wallet JSON: ${error}': 49,
|
|
'Wallet imported and loaded.': 50,
|
|
'Could not import wallet: ${error}': 51,
|
|
} as const
|
|
|
|
/**
|
|
* Plumbing. DO NOT EDIT.
|
|
*/
|
|
export type I18nKey = keyof typeof dict
|
|
export type LangDict = Record<(typeof dict)[I18nKey], string>
|
|
export default dict
|