85 lines
3.3 KiB
TypeScript
85 lines
3.3 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 Web UI Password': 55,
|
|
'Display the existing username and password for the Spaces web terminal.':
|
|
56,
|
|
|
|
// interfaces.ts
|
|
'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 Web UI Password': 16,
|
|
'Generate a new admin password for the Spaces web terminal': 17,
|
|
'Show 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
|