This commit is contained in:
63
startos/i18n/dictionaries/default.ts
Normal file
63
startos/i18n/dictionaries/default.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
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.': 9,
|
||||
'spaced is indexing. Progress: ${pct}%': 10,
|
||||
'spaced RPC did not respond.': 11,
|
||||
|
||||
// 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,
|
||||
} as const
|
||||
|
||||
/**
|
||||
* Plumbing. DO NOT EDIT.
|
||||
*/
|
||||
export type I18nKey = keyof typeof dict
|
||||
export type LangDict = Record<(typeof dict)[I18nKey], string>
|
||||
export default dict
|
||||
3
startos/i18n/dictionaries/translations.ts
Normal file
3
startos/i18n/dictionaries/translations.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { LangDict } from './default'
|
||||
|
||||
export default {} satisfies Record<string, LangDict>
|
||||
8
startos/i18n/index.ts
Normal file
8
startos/i18n/index.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Plumbing. DO NOT EDIT this file.
|
||||
*/
|
||||
import { setupI18n } from '@start9labs/start-sdk'
|
||||
import defaultDict, { DEFAULT_LANG } from './dictionaries/default'
|
||||
import translations from './dictionaries/translations'
|
||||
|
||||
export const i18n = setupI18n(defaultDict, translations, DEFAULT_LANG)
|
||||
Reference in New Issue
Block a user