@basaltkit/deploy-ui 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -1
- package/dist/client/api.js +6 -5
- package/dist/client/app.js +82 -38
- package/dist/client/dialog.js +3 -2
- package/dist/client/i18n-messages.js +14 -0
- package/dist/client/i18n.js +777 -0
- package/dist/client/icons.js +2 -0
- package/dist/client/main.js +12 -10
- package/dist/client/messages.d.ts +2 -0
- package/dist/client/reply.js +8 -7
- package/dist/client/version.js +70 -0
- package/dist/client/view-commits.js +10 -24
- package/dist/client/view-history.js +39 -34
- package/dist/client/view-plan.js +36 -35
- package/dist/client/view-run.js +52 -48
- package/dist/client/view-status.js +28 -26
- package/dist/client/view-targets.js +30 -25
- package/dist/page.d.ts +2 -2
- package/dist/page.js +10 -1
- package/dist/server.js +9 -3
- package/dist/targets.d.ts +6 -0
- package/dist/targets.js +8 -2
- package/package.json +7 -6
|
@@ -0,0 +1,777 @@
|
|
|
1
|
+
import { defineMessages, render } from './i18n-messages.js';
|
|
2
|
+
export const LOCALES = ['en', 'pt'];
|
|
3
|
+
const en = defineMessages({
|
|
4
|
+
// ── language ──
|
|
5
|
+
'language': 'Language',
|
|
6
|
+
'language.en': 'English',
|
|
7
|
+
'language.pt': 'Português',
|
|
8
|
+
// ── shell ──
|
|
9
|
+
'shell.screens': 'Screens',
|
|
10
|
+
'shell.localOnly': 'Local only',
|
|
11
|
+
'shell.localOnlyTitle': 'Local only: this page talks to 127.0.0.1, which talks to your servers over your own ssh.',
|
|
12
|
+
'shell.starting': 'Starting…',
|
|
13
|
+
'screen.status': 'Status',
|
|
14
|
+
'screen.plan': 'Plan & deploy',
|
|
15
|
+
'screen.history': 'History',
|
|
16
|
+
'screen.run': 'Run',
|
|
17
|
+
'screen.targets': 'Targets',
|
|
18
|
+
'target': 'Target',
|
|
19
|
+
'quit': 'Quit',
|
|
20
|
+
'refresh': 'Refresh',
|
|
21
|
+
'refreshing': 'Refreshing…',
|
|
22
|
+
'cancel': 'Cancel',
|
|
23
|
+
'save': 'Save',
|
|
24
|
+
'protected.badge': 'PROTECTED',
|
|
25
|
+
'protected.title': 'Deploy and rollback ask for the name to be typed',
|
|
26
|
+
'ctx.host': 'host',
|
|
27
|
+
'ctx.deploy': 'deploy',
|
|
28
|
+
'ctx.app': 'app',
|
|
29
|
+
'ctx.hostPart': 'host {host}',
|
|
30
|
+
'ctx.appPart': 'app {app}',
|
|
31
|
+
'ctx.source': 'source',
|
|
32
|
+
// ── the server's version ──
|
|
33
|
+
'drift.title': 'This server runs @basaltkit/deploy {version}; this page uses features up to {needed}',
|
|
34
|
+
'drift.missing': 'Not available until it is updated: {list}.',
|
|
35
|
+
'drift.how': 'To update, in the app\'s repository:',
|
|
36
|
+
'drift.howTail': ', then commit and push.',
|
|
37
|
+
'drift.twice': 'Then deploy once: that deploy still runs {version} and installs {needed}; the next one runs it. Check connection then shows the new version.',
|
|
38
|
+
'feature.commits': 'the commit lists in Plan, History and Rollback ({since})',
|
|
39
|
+
'feature.source': 'the app\'s git source in the target bar ({since})',
|
|
40
|
+
'targets.identity': 'app {app} · {source}',
|
|
41
|
+
'targets.app': 'app {app}',
|
|
42
|
+
// ── start and pairing ──
|
|
43
|
+
'start.failed': 'The UI could not start.',
|
|
44
|
+
'start.sessionTaken': 'This UI already has its browser session.',
|
|
45
|
+
'start.codeRefused': 'The code was refused.',
|
|
46
|
+
'start.sessionTakenHelp': 'Another tab or browser claimed it first. If that was not you, stop basalt-deploy-ui in your terminal now (Ctrl-C) and start it again.',
|
|
47
|
+
'start.again': '{why}. Start basalt-deploy-ui again.',
|
|
48
|
+
'pair.title': 'Pair this page',
|
|
49
|
+
'pair.code': 'Pairing code',
|
|
50
|
+
'pair.help': 'Type the pairing code basalt-deploy-ui shows in your terminal (2 minutes, 5 tries). Without --pair, open the URL it printed instead.',
|
|
51
|
+
'pair.typeCode': 'Type the code your terminal shows.',
|
|
52
|
+
'pair.open': 'Open the session',
|
|
53
|
+
// ── stopped ──
|
|
54
|
+
'gone.title': 'Disconnected',
|
|
55
|
+
'gone.sendsNothing': 'This page sends nothing from here on.',
|
|
56
|
+
'gone.unverified': 'This page no longer talks to your deploy UI.',
|
|
57
|
+
'gone.stopped': 'The deploy UI has stopped.',
|
|
58
|
+
'gone.help': 'Nothing was sent. Detached runs go on on the server. Start basalt-deploy-ui again and open the URL it prints.',
|
|
59
|
+
'quit.stopped': 'Stopped',
|
|
60
|
+
'quit.stoppedText': 'The deploy UI has stopped. You can close this tab.',
|
|
61
|
+
'quit.stoppedHelp': 'Detached runs go on on the server; start basalt-deploy-ui again to re-attach.',
|
|
62
|
+
'quit.title': 'Quit the deploy UI?',
|
|
63
|
+
'quit.line': 'The local server stops and this page stops working.',
|
|
64
|
+
'quit.watching': 'A run is being watched: detached runs go on on the server (re-attach later); an attended one stops at its next step.',
|
|
65
|
+
'quit.detached': 'Detached runs go on on the server.',
|
|
66
|
+
'app.noTarget': 'No target selected',
|
|
67
|
+
'app.addTargetFirst': 'Add a target first.',
|
|
68
|
+
'app.nothingRunning': 'Nothing running here',
|
|
69
|
+
'app.nothingRunningText': 'No run in this tab yet: start one from Plan & deploy, or attach from Status.',
|
|
70
|
+
// ── the page's checks of its server ──
|
|
71
|
+
'api.cannotCheck': 'this page cannot check its local server (no server key, or no WebCrypto): nothing is sent',
|
|
72
|
+
'api.refusedProof': 'the local server refused to prove it is this UI: it is not the one this page was opened from',
|
|
73
|
+
'api.wrongProof': 'the local server could not prove it is this UI: another program may be listening on its port',
|
|
74
|
+
'api.streamStopped': 'the deploy UI stopped while this stream was open',
|
|
75
|
+
'api.notRunning': 'the deploy UI is not running any more (it stopped after its idle time, from Quit, or with Ctrl-C)',
|
|
76
|
+
// ── replies ──
|
|
77
|
+
'reply.uiRefused': 'The UI refused the request',
|
|
78
|
+
'reply.commandFailed': 'The command failed',
|
|
79
|
+
'reply.exitCode': 'exit code {code}',
|
|
80
|
+
'unknown': 'unknown',
|
|
81
|
+
'level.ok': 'OK: ',
|
|
82
|
+
'level.warn': 'Warning: ',
|
|
83
|
+
'level.err': 'Error: ',
|
|
84
|
+
'reply.diagnostics': 'Diagnostics ({count})',
|
|
85
|
+
'reply.heldBy': 'held by pid {pid} on {host}, {actor}, {command}',
|
|
86
|
+
'reply.heldByRun': 'held by pid {pid} on {host}, {actor}, {command} (run {runId})',
|
|
87
|
+
// ── status ──
|
|
88
|
+
'status.sub': 'What runs on the server now: the release, the process, the lock and the last runs.',
|
|
89
|
+
'status.notLoaded': 'Not loaded yet.',
|
|
90
|
+
'status.notLoadedText': 'Refresh to ask the server for its state.',
|
|
91
|
+
'status.asking': 'Asking the server…',
|
|
92
|
+
'status.askingText': 'Over your ssh; this can take a few seconds.',
|
|
93
|
+
'status.held': 'Commit {sha} is held since {at} by {actor}',
|
|
94
|
+
'status.heldHelp': 'A run refuses it until the branch moves on; "Deploy anyway" in Plan & deploy overrides that once.',
|
|
95
|
+
'status.activeRun': 'Active run',
|
|
96
|
+
'status.alive': 'alive',
|
|
97
|
+
'status.notSeenAlive': 'not seen alive',
|
|
98
|
+
'status.command': 'Command',
|
|
99
|
+
'status.actor': 'Actor',
|
|
100
|
+
'status.started': 'Started',
|
|
101
|
+
'status.attach': 'Attach',
|
|
102
|
+
'status.currentRelease': 'Current release',
|
|
103
|
+
'status.healthy': 'healthy',
|
|
104
|
+
'status.deployed': 'Deployed',
|
|
105
|
+
'status.by': 'By',
|
|
106
|
+
'status.via': '{who} via {via}',
|
|
107
|
+
'status.migrations': 'Migrations',
|
|
108
|
+
'status.noHealthy': 'No healthy release recorded yet.',
|
|
109
|
+
'status.process': 'Process',
|
|
110
|
+
'status.running': 'running',
|
|
111
|
+
'status.notRunning': 'not running',
|
|
112
|
+
'status.manager': 'Manager',
|
|
113
|
+
'status.name': 'Name',
|
|
114
|
+
'status.lock': 'Lock',
|
|
115
|
+
'status.free': 'free',
|
|
116
|
+
'status.freeText': 'Free. No deploy holds it.',
|
|
117
|
+
'status.corrupt': 'corrupt',
|
|
118
|
+
'status.stale': 'stale',
|
|
119
|
+
'status.heldPill': 'held',
|
|
120
|
+
'status.corruptLock': 'Corrupt lock file. ',
|
|
121
|
+
'status.lockHolder': 'Held by pid {pid} on {host} — {actor}, {command}, since {since}',
|
|
122
|
+
'status.staleNote': ' (stale: that process is gone)',
|
|
123
|
+
'status.lastRun': 'Last run',
|
|
124
|
+
'status.noRun': 'No run recorded yet.',
|
|
125
|
+
'status.exit': 'exit {code}',
|
|
126
|
+
'status.noDone': 'did not end with done',
|
|
127
|
+
'status.unknownCommand': 'unknown command',
|
|
128
|
+
'status.ended': 'Ended',
|
|
129
|
+
'status.showLog': 'Show its log',
|
|
130
|
+
// ── plan ──
|
|
131
|
+
'plan.sub': 'plan changes nothing on the server. Its preflight may reach the git remote, so it can take a while.',
|
|
132
|
+
'plan.planning': 'Planning…',
|
|
133
|
+
'plan.again': 'Plan again',
|
|
134
|
+
'plan.run': 'Run plan',
|
|
135
|
+
'plan.planningText': 'Preflight checks and the plan run on the server; nothing changes there.',
|
|
136
|
+
'plan.none': 'No plan yet',
|
|
137
|
+
'plan.noneText': 'Run a plan to see what a deploy would do, the questions it would ask, and anything that would stop it.',
|
|
138
|
+
'plan.noneBack': 'No plan came back.',
|
|
139
|
+
'plan.wouldDo': 'What a run would do',
|
|
140
|
+
'plan.goesOutTitle': 'What will go out',
|
|
141
|
+
'plan.commitCount': { one: '{count} commit', other: '{count} commits' },
|
|
142
|
+
'plan.diverged': '{added} new · {removed} only on the server',
|
|
143
|
+
'plan.behindCount': '{count} behind',
|
|
144
|
+
'plan.rewritten': 'The branch was rewritten on the remote',
|
|
145
|
+
'plan.rewrittenHelp': 'A run refuses it: its merge is fast-forward only. The commits only on the server would be lost.',
|
|
146
|
+
'plan.behind': 'The remote\'s branch is behind the server',
|
|
147
|
+
'plan.behindHelp': 'A run refuses it: its merge is fast-forward only.',
|
|
148
|
+
'plan.heldByRollback': 'This commit is held by a rollback',
|
|
149
|
+
'plan.heldByRollbackHelp': 'A run refuses it unless you deploy anyway (--unhold).',
|
|
150
|
+
'plan.goesOut': 'Goes out',
|
|
151
|
+
'plan.onlyOnServer': 'Only on the server',
|
|
152
|
+
'plan.nothingNew': 'Nothing new — the server already runs the tip of the branch.',
|
|
153
|
+
'plan.noProblem': 'No problem found.',
|
|
154
|
+
'plan.findings': 'Findings',
|
|
155
|
+
'plan.errors': { one: '{count} error', other: '{count} errors' },
|
|
156
|
+
'plan.warnings': { one: '{count} warning', other: '{count} warnings' },
|
|
157
|
+
'sev.error': 'Error ',
|
|
158
|
+
'sev.warning': 'Warning ',
|
|
159
|
+
'plan.fix': 'Fix: ',
|
|
160
|
+
'form.required': 'required',
|
|
161
|
+
'form.none': '(none)',
|
|
162
|
+
'plan.deployTo': 'Deploy to {name}?',
|
|
163
|
+
'plan.writeEnvOn': 'Write the .env on {name}?',
|
|
164
|
+
'plan.deployLine': 'Fetch, .env, build, migrate, restart, health check — the run goes on on the server if this page closes (unless attended).',
|
|
165
|
+
'plan.envLine': 'The .env and the dedicated infra only; nothing is built or restarted.',
|
|
166
|
+
'plan.willMigrate': 'This will migrate the database.',
|
|
167
|
+
'plan.deploy': 'Deploy',
|
|
168
|
+
'plan.writeEnv': 'Write .env',
|
|
169
|
+
'plan.envOn': 'env on {name}',
|
|
170
|
+
'plan.runAttended': 'run on {name} (attended)',
|
|
171
|
+
'plan.starting': 'Starting the run on the server…',
|
|
172
|
+
'plan.typeAgain': '{message} — type it again',
|
|
173
|
+
'plan.willAsk': 'What the run will ask',
|
|
174
|
+
'plan.secrets': 'Secrets are sent once, over your ssh, to the deploy on the server; they are never stored here and the fields are emptied after sending.',
|
|
175
|
+
'plan.nothingToAnswer': 'Nothing to answer: the .env is complete.',
|
|
176
|
+
'plan.unhold': ' Deploy anyway: the held commit ',
|
|
177
|
+
'plan.unholdTail': ' may be deployed (--unhold)',
|
|
178
|
+
'plan.advanced': 'Advanced',
|
|
179
|
+
'plan.attended': ' Attended: the run stops at its next step if this page closes or the UI quits',
|
|
180
|
+
'plan.blocks': 'The plan found problems that stop a run: fix them first.',
|
|
181
|
+
'plan.writeEnvOnly': 'Write .env only…',
|
|
182
|
+
'plan.deployEllipsis': 'Deploy…',
|
|
183
|
+
// ── commits ──
|
|
184
|
+
'reason.skipped': 'the fetch is skipped, so a run deploys the commit already checked out',
|
|
185
|
+
'reason.not-fetched': 'the server could not fetch the branch from its remote',
|
|
186
|
+
'reason.no-previous': 'there is no earlier release to compare with',
|
|
187
|
+
'reason.missing-commit': 'a commit is not in the server\'s checkout (rewritten history, or never fetched there)',
|
|
188
|
+
'reason.shallow': 'the server\'s checkout is a shallow clone, so its history is incomplete',
|
|
189
|
+
'reason.unrelated': 'the two commits share no history',
|
|
190
|
+
'reason.timeout': 'git took too long on the server',
|
|
191
|
+
'reason.too-large': 'git\'s answer was too large',
|
|
192
|
+
'reason.malformed': 'git\'s answer could not be read',
|
|
193
|
+
'reason.git-failed': 'git failed on the server',
|
|
194
|
+
'reason.none': 'the server gave no usable reason',
|
|
195
|
+
'commits.unavailable': 'Commit list unavailable',
|
|
196
|
+
'commits.olderDeploy': 'the server\'s @basaltkit/deploy is older than the commit lists',
|
|
197
|
+
'commits.unreadable': 'the server\'s answer could not be read',
|
|
198
|
+
'commits.noAnswer': 'no answer',
|
|
199
|
+
'commits.noSubject': '(no subject)',
|
|
200
|
+
'commits.olderNotShown': { one: '+ {count} older commit not shown — the server sends at most {limit} per list.', other: '+ {count} older commits not shown — the server sends at most {limit} per list.' },
|
|
201
|
+
'commits.andMore': 'and {count} more',
|
|
202
|
+
// ── history ──
|
|
203
|
+
'history.sub': 'The last 10 releases the server recorded, newest first.',
|
|
204
|
+
'history.loadStatus': 'Load the status first.',
|
|
205
|
+
'history.loadStatusText': 'The releases come with the status of the target.',
|
|
206
|
+
'history.releases': 'Releases',
|
|
207
|
+
'history.recorded': '{count} recorded',
|
|
208
|
+
'history.none': 'No release recorded yet.',
|
|
209
|
+
'history.noneText': 'The first deploy of this target will show here.',
|
|
210
|
+
'history.rollBack': 'Roll back',
|
|
211
|
+
'history.backTo': 'Back to',
|
|
212
|
+
'history.lastHealthy': 'the last healthy release (the deploy decides)',
|
|
213
|
+
'history.codeOnly': 'Code only: the database is not rolled back. The commit it leaves is held: a scheduled run will not redeploy it until the branch moves on.',
|
|
214
|
+
'history.preview': 'Preview changes',
|
|
215
|
+
'history.rollBackEllipsis': 'Roll back…',
|
|
216
|
+
'history.rollBackConfirm': 'Roll back',
|
|
217
|
+
'col.commit': 'Commit',
|
|
218
|
+
'col.when': 'When',
|
|
219
|
+
'col.status': 'Status',
|
|
220
|
+
'col.actor': 'Actor',
|
|
221
|
+
'col.via': 'Via',
|
|
222
|
+
'col.client': 'Client',
|
|
223
|
+
'col.migrations': 'Migrations',
|
|
224
|
+
'col.backup': 'Backup',
|
|
225
|
+
'col.note': 'Note',
|
|
226
|
+
'history.changes': 'Changes',
|
|
227
|
+
'history.between': 'Commits between {from} and {to}',
|
|
228
|
+
'history.noEarlier': 'No earlier release to compare with',
|
|
229
|
+
'history.showCommits': 'Show the commits of {sha}',
|
|
230
|
+
'history.reading': 'Reading the commits on the server…',
|
|
231
|
+
'history.readingLeaving': 'Reading what would leave production…',
|
|
232
|
+
'history.broughtIn': 'Brought in',
|
|
233
|
+
'history.takenOut': 'Taken out',
|
|
234
|
+
'history.same': 'The same commit as the release before: nothing changed.',
|
|
235
|
+
'history.leaves': 'Leaves production',
|
|
236
|
+
'history.comesBack': 'Comes back (not in the current release)',
|
|
237
|
+
'history.nothingChanges': 'Nothing changes.',
|
|
238
|
+
'history.previewFailed': 'Commit list unavailable: the preview failed — the rollback still works.',
|
|
239
|
+
'history.previewUnavailable': 'Commit list unavailable — the rollback still works.',
|
|
240
|
+
'history.previewReason': 'Commit list unavailable: {reason} — the rollback still works.',
|
|
241
|
+
'history.noneLeaves': 'No commit leaves production.',
|
|
242
|
+
'history.rollBackTitle': 'Roll back {name}?',
|
|
243
|
+
'history.backToSha': 'Back to {sha}.',
|
|
244
|
+
'history.backToLastHealthy': 'Back to the last healthy release.',
|
|
245
|
+
'history.backToLastHealthyNow': 'Back to the last healthy release — {sha} now.',
|
|
246
|
+
'history.heldUntil': 'The commit it leaves is held until the branch moves on.',
|
|
247
|
+
'history.starting': 'Starting the rollback…',
|
|
248
|
+
'release.ok': 'ok',
|
|
249
|
+
'release.failed': 'failed',
|
|
250
|
+
// ── run ──
|
|
251
|
+
'run.steps': 'Steps',
|
|
252
|
+
'run.log': 'Log',
|
|
253
|
+
'run.findings': 'Findings',
|
|
254
|
+
'run.resuming': '(resuming from event {seq}: earlier events were shown before; "Show from the start" replays them)',
|
|
255
|
+
'run.stoppedWatching': 'Stopped watching (the run goes on on the server).',
|
|
256
|
+
'run.streamEnded': 'The stream ended.',
|
|
257
|
+
'run.connecting': 'Connecting to {ssh}…',
|
|
258
|
+
'run.reconnecting': 'Connection lost ({reason}); reconnecting in {seconds} s from event {seq}…',
|
|
259
|
+
'run.unknownEvent': 'an event this UI does not know ({type}): ignored',
|
|
260
|
+
'step.running': 'running',
|
|
261
|
+
'step.ok': 'ok',
|
|
262
|
+
'step.skipped': 'skipped',
|
|
263
|
+
'step.failed': 'failed',
|
|
264
|
+
'run.step': 'Step: {title}',
|
|
265
|
+
'run.asks': 'the deploy asks: {message} (answer it in the form and run again)',
|
|
266
|
+
'run.wrapped': 'an unexpected wrapped event was ignored',
|
|
267
|
+
'run.noEnd': 'no end seen',
|
|
268
|
+
'run.dropped': { one: ' ({count} older log line dropped from the page)', other: ' ({count} older log lines dropped from the page)' },
|
|
269
|
+
'run.stoppedBecause': 'Stopped: {why}',
|
|
270
|
+
'run.streamEndedLower': 'the stream ended',
|
|
271
|
+
'run.mayStillRun': 'The run may still be going on the server: re-attach to see.',
|
|
272
|
+
'run.done': 'Done.',
|
|
273
|
+
'run.finishedOk': 'Finished: exit 0',
|
|
274
|
+
'run.finishedWith': 'Finished with exit {code}',
|
|
275
|
+
'run.cancelAgain': 'Cancel again (stop now)…',
|
|
276
|
+
'run.cancel': 'Cancel…',
|
|
277
|
+
'run.stopWatching': 'Stop watching',
|
|
278
|
+
'run.reattach': 'Re-attach',
|
|
279
|
+
'run.fromStart': 'Show from the start',
|
|
280
|
+
'run.refreshStatus': 'Refresh status',
|
|
281
|
+
'run.stopNowTitle': 'Stop the deploy NOW?',
|
|
282
|
+
'run.stopNowLine': 'This ends the deploy at once, mid-step.',
|
|
283
|
+
'run.halfApplied': 'A migration may be left half-applied',
|
|
284
|
+
'run.restoreInLog': 'The restore command for the pre-deploy dump is in the log. The lock is left stale.',
|
|
285
|
+
'run.stopItNow': 'Stop it now',
|
|
286
|
+
'run.cancelTitle': 'Cancel the run on {name}?',
|
|
287
|
+
'run.cancelLine': 'It stops at the next step boundary before the migration; from the migration on, the deploy finishes first.',
|
|
288
|
+
'run.cancelSecondLine': 'A second cancel would stop it at once. If this run was already cancelled once (from a terminal or another session), nothing is sent now: you are asked again first.',
|
|
289
|
+
'run.cancelRun': 'Cancel the run',
|
|
290
|
+
'run.cancelSentTwice': 'cancel sent a second time: the deploy stops at once',
|
|
291
|
+
'run.cancelSent': 'cancel sent: the deploy stops at its next safe point',
|
|
292
|
+
'run.release': 'Release {sha}: {status}',
|
|
293
|
+
'run.migrations': 'migrations: {list}',
|
|
294
|
+
'run.rolledBack': 'Rolled back to {sha}: {status}',
|
|
295
|
+
'run.isHeld': '{sha} is held',
|
|
296
|
+
'run.deployChose': 'The deploy chose {to}, not {previewed} the preview showed: open History to see what changed.',
|
|
297
|
+
'run.envWritten': { one: '.env written ({count} change)', other: '.env written ({count} changes)' },
|
|
298
|
+
'run.result': '{command} result',
|
|
299
|
+
'run.title': 'run {runId}',
|
|
300
|
+
'run.rollbackTitle': 'rollback {runId}',
|
|
301
|
+
// ── targets ──
|
|
302
|
+
'field.name': 'Name',
|
|
303
|
+
'field.name.help': 'lowercase letters, digits and -, e.g. staging',
|
|
304
|
+
'field.ssh': 'SSH destination',
|
|
305
|
+
'field.ssh.help': '[user@]host, or a Host alias from your ~/.ssh/config (jump hosts and keys go there)',
|
|
306
|
+
'field.port': 'Port',
|
|
307
|
+
'field.port.help': 'optional; default: your ~/.ssh/config, else 22',
|
|
308
|
+
'field.dir': 'Checkout on the server',
|
|
309
|
+
'field.dir.help': 'absolute path, e.g. /srv/myapp',
|
|
310
|
+
'field.node': 'node on the server',
|
|
311
|
+
'field.node.help': 'optional absolute path, when a non-interactive shell has no node on PATH',
|
|
312
|
+
'field.config': 'Config file',
|
|
313
|
+
'field.config.help': 'optional, relative to the checkout (default deploy.config.ts)',
|
|
314
|
+
'field.protected': 'Protected: type the name to deploy or roll back',
|
|
315
|
+
'targets.none': 'No target yet',
|
|
316
|
+
'targets.noneText': 'No target yet. Add the server you already reach with ssh as the app user.',
|
|
317
|
+
'targets.servers': 'Servers',
|
|
318
|
+
'targets.ssh': 'SSH',
|
|
319
|
+
'targets.checkout': 'Checkout',
|
|
320
|
+
'targets.protection': 'Protection',
|
|
321
|
+
'targets.actions': 'Actions',
|
|
322
|
+
'targets.protected': 'protected',
|
|
323
|
+
'targets.use': 'Use',
|
|
324
|
+
'targets.check': 'Check connection',
|
|
325
|
+
'targets.edit': 'Edit',
|
|
326
|
+
'targets.remove': 'Remove',
|
|
327
|
+
'targets.count': { one: '{count} target', other: '{count} targets' },
|
|
328
|
+
'targets.storedIn': 'Stored on this machine only, in ',
|
|
329
|
+
'targets.storedTail': ' (0600). They hold no secret.',
|
|
330
|
+
'targets.add': 'Add a target',
|
|
331
|
+
'targets.connecting': 'Connecting to {ssh}…',
|
|
332
|
+
'targets.answers': '{name} answers: @basaltkit/deploy {version}, protocol 1, host {host}',
|
|
333
|
+
'targets.removeTitle': 'Remove {name}?',
|
|
334
|
+
'targets.removeLine': 'Only this UI forgets it; nothing changes on the server.',
|
|
335
|
+
'targets.actorHelp': 'Recorded with each release as --actor (letters, digits and ._@+-).',
|
|
336
|
+
'targets.saved': 'Saved.',
|
|
337
|
+
'targets.auditActor': 'Audit actor',
|
|
338
|
+
'targets.audit': 'Audit',
|
|
339
|
+
'targets.actorLabel': 'Your name in the audit (actor)',
|
|
340
|
+
'targets.saveActor': 'Save actor',
|
|
341
|
+
'targets.editTitle': 'Edit {name}',
|
|
342
|
+
// ── dialog ──
|
|
343
|
+
'dialog.protected': ' This target is protected.',
|
|
344
|
+
'dialog.typeTo': 'Type ',
|
|
345
|
+
'dialog.toConfirm': ' to confirm',
|
|
346
|
+
});
|
|
347
|
+
const pt = {
|
|
348
|
+
'language': 'Idioma',
|
|
349
|
+
'language.en': 'English',
|
|
350
|
+
'language.pt': 'Português',
|
|
351
|
+
'shell.screens': 'Ecrãs',
|
|
352
|
+
'shell.localOnly': 'Só local',
|
|
353
|
+
'shell.localOnlyTitle': 'Só local: esta página fala com 127.0.0.1, que fala com os teus servidores pelo teu próprio ssh.',
|
|
354
|
+
'shell.starting': 'A iniciar…',
|
|
355
|
+
'screen.status': 'Estado',
|
|
356
|
+
'screen.plan': 'Plano e deploy',
|
|
357
|
+
'screen.history': 'Histórico',
|
|
358
|
+
'screen.run': 'Execução',
|
|
359
|
+
'screen.targets': 'Destinos',
|
|
360
|
+
'target': 'Destino',
|
|
361
|
+
'quit': 'Sair',
|
|
362
|
+
'refresh': 'Actualizar',
|
|
363
|
+
'refreshing': 'A actualizar…',
|
|
364
|
+
'cancel': 'Cancelar',
|
|
365
|
+
'save': 'Guardar',
|
|
366
|
+
'protected.badge': 'PROTEGIDO',
|
|
367
|
+
'protected.title': 'O deploy e o rollback pedem que o nome seja escrito',
|
|
368
|
+
'ctx.host': 'host',
|
|
369
|
+
'ctx.deploy': 'deploy',
|
|
370
|
+
'ctx.app': 'app',
|
|
371
|
+
'ctx.hostPart': 'host {host}',
|
|
372
|
+
'ctx.appPart': 'app {app}',
|
|
373
|
+
'ctx.source': 'origem',
|
|
374
|
+
'drift.title': 'Este servidor tem o @basaltkit/deploy {version}; esta página usa funcionalidades até à {needed}',
|
|
375
|
+
'drift.missing': 'Indisponível até ser actualizado: {list}.',
|
|
376
|
+
'drift.how': 'Para actualizar, no repositório da app:',
|
|
377
|
+
'drift.howTail': ', depois commit e push.',
|
|
378
|
+
'drift.twice': 'Depois faz um deploy: esse deploy ainda corre a {version} e instala a {needed}; o seguinte já a usa. O Testar a ligação passa então a mostrar a versão nova.',
|
|
379
|
+
'feature.commits': 'as listas de commits no Plano, Histórico e Rollback ({since})',
|
|
380
|
+
'feature.source': 'a origem git da app na barra do destino ({since})',
|
|
381
|
+
'targets.identity': 'app {app} · {source}',
|
|
382
|
+
'targets.app': 'app {app}',
|
|
383
|
+
'start.failed': 'A UI não conseguiu arrancar.',
|
|
384
|
+
'start.sessionTaken': 'Esta UI já tem a sua sessão no navegador.',
|
|
385
|
+
'start.codeRefused': 'O código foi recusado.',
|
|
386
|
+
'start.sessionTakenHelp': 'Outro separador ou navegador reclamou-a primeiro. Se não foste tu, pára já o basalt-deploy-ui no terminal (Ctrl-C) e arranca-o de novo.',
|
|
387
|
+
'start.again': '{why}. Arranca o basalt-deploy-ui de novo.',
|
|
388
|
+
'pair.title': 'Emparelhar esta página',
|
|
389
|
+
'pair.code': 'Código de emparelhamento',
|
|
390
|
+
'pair.help': 'Escreve o código de emparelhamento que o basalt-deploy-ui mostra no terminal (2 minutos, 5 tentativas). Sem --pair, abre antes o URL que ele imprimiu.',
|
|
391
|
+
'pair.typeCode': 'Escreve o código que o terminal mostra.',
|
|
392
|
+
'pair.open': 'Abrir a sessão',
|
|
393
|
+
'gone.title': 'Desligado',
|
|
394
|
+
'gone.sendsNothing': 'Esta página já não envia nada.',
|
|
395
|
+
'gone.unverified': 'Esta página já não fala com a tua UI de deploy.',
|
|
396
|
+
'gone.stopped': 'A UI de deploy parou.',
|
|
397
|
+
'gone.help': 'Nada foi enviado. As execuções destacadas continuam no servidor. Arranca o basalt-deploy-ui de novo e abre o URL que ele imprime.',
|
|
398
|
+
'quit.stopped': 'Parada',
|
|
399
|
+
'quit.stoppedText': 'A UI de deploy parou. Podes fechar este separador.',
|
|
400
|
+
'quit.stoppedHelp': 'As execuções destacadas continuam no servidor; arranca o basalt-deploy-ui de novo para voltar a acompanhá-las.',
|
|
401
|
+
'quit.title': 'Sair da UI de deploy?',
|
|
402
|
+
'quit.line': 'O servidor local pára e esta página deixa de funcionar.',
|
|
403
|
+
'quit.watching': 'Há uma execução a ser acompanhada: as destacadas continuam no servidor (volta a acompanhá-la depois); uma assistida pára no passo seguinte.',
|
|
404
|
+
'quit.detached': 'As execuções destacadas continuam no servidor.',
|
|
405
|
+
'app.noTarget': 'Nenhum destino seleccionado',
|
|
406
|
+
'app.addTargetFirst': 'Adiciona primeiro um destino.',
|
|
407
|
+
'app.nothingRunning': 'Nada a correr aqui',
|
|
408
|
+
'app.nothingRunningText': 'Ainda não há execução neste separador: inicia uma em Plano e deploy, ou acompanha uma a partir do Estado.',
|
|
409
|
+
'api.cannotCheck': 'esta página não consegue verificar o seu servidor local (sem chave do servidor, ou sem WebCrypto): nada é enviado',
|
|
410
|
+
'api.refusedProof': 'o servidor local recusou provar que é esta UI: não é aquele a partir do qual esta página foi aberta',
|
|
411
|
+
'api.wrongProof': 'o servidor local não conseguiu provar que é esta UI: outro programa pode estar a escutar na sua porta',
|
|
412
|
+
'api.streamStopped': 'a UI de deploy parou com este fluxo aberto',
|
|
413
|
+
'api.notRunning': 'a UI de deploy já não está a correr (parou por inactividade, por Sair ou com Ctrl-C)',
|
|
414
|
+
'reply.uiRefused': 'A UI recusou o pedido',
|
|
415
|
+
'reply.commandFailed': 'O comando falhou',
|
|
416
|
+
'reply.exitCode': 'código de saída {code}',
|
|
417
|
+
'unknown': 'desconhecido',
|
|
418
|
+
'level.ok': 'OK: ',
|
|
419
|
+
'level.warn': 'Aviso: ',
|
|
420
|
+
'level.err': 'Erro: ',
|
|
421
|
+
'reply.diagnostics': 'Diagnóstico ({count})',
|
|
422
|
+
'reply.heldBy': 'retido pelo pid {pid} em {host}, {actor}, {command}',
|
|
423
|
+
'reply.heldByRun': 'retido pelo pid {pid} em {host}, {actor}, {command} (execução {runId})',
|
|
424
|
+
'status.sub': 'O que corre agora no servidor: a release, o processo, o lock e as últimas execuções.',
|
|
425
|
+
'status.notLoaded': 'Ainda não carregado.',
|
|
426
|
+
'status.notLoadedText': 'Actualiza para pedir o estado ao servidor.',
|
|
427
|
+
'status.asking': 'A perguntar ao servidor…',
|
|
428
|
+
'status.askingText': 'Pelo teu ssh; pode levar alguns segundos.',
|
|
429
|
+
'status.held': 'O commit {sha} está retido desde {at} por {actor}',
|
|
430
|
+
'status.heldHelp': 'Uma execução recusa-o até o ramo avançar; «Fazer deploy mesmo assim» em Plano e deploy ultrapassa isso uma vez.',
|
|
431
|
+
'status.activeRun': 'Execução activa',
|
|
432
|
+
'status.alive': 'viva',
|
|
433
|
+
'status.notSeenAlive': 'não vista viva',
|
|
434
|
+
'status.command': 'Comando',
|
|
435
|
+
'status.actor': 'Actor',
|
|
436
|
+
'status.started': 'Início',
|
|
437
|
+
'status.attach': 'Acompanhar',
|
|
438
|
+
'status.currentRelease': 'Release actual',
|
|
439
|
+
'status.healthy': 'saudável',
|
|
440
|
+
'status.deployed': 'Publicada',
|
|
441
|
+
'status.by': 'Por',
|
|
442
|
+
'status.via': '{who} via {via}',
|
|
443
|
+
'status.migrations': 'Migrações',
|
|
444
|
+
'status.noHealthy': 'Ainda não há release saudável registada.',
|
|
445
|
+
'status.process': 'Processo',
|
|
446
|
+
'status.running': 'a correr',
|
|
447
|
+
'status.notRunning': 'parado',
|
|
448
|
+
'status.manager': 'Gestor',
|
|
449
|
+
'status.name': 'Nome',
|
|
450
|
+
'status.lock': 'Lock',
|
|
451
|
+
'status.free': 'livre',
|
|
452
|
+
'status.freeText': 'Livre. Nenhum deploy o detém.',
|
|
453
|
+
'status.corrupt': 'corrompido',
|
|
454
|
+
'status.stale': 'abandonado',
|
|
455
|
+
'status.heldPill': 'retido',
|
|
456
|
+
'status.corruptLock': 'Ficheiro de lock corrompido. ',
|
|
457
|
+
'status.lockHolder': 'Retido pelo pid {pid} em {host} — {actor}, {command}, desde {since}',
|
|
458
|
+
'status.staleNote': ' (abandonado: esse processo já não existe)',
|
|
459
|
+
'status.lastRun': 'Última execução',
|
|
460
|
+
'status.noRun': 'Ainda não há execução registada.',
|
|
461
|
+
'status.exit': 'saída {code}',
|
|
462
|
+
'status.noDone': 'não terminou com done',
|
|
463
|
+
'status.unknownCommand': 'comando desconhecido',
|
|
464
|
+
'status.ended': 'Fim',
|
|
465
|
+
'status.showLog': 'Ver o registo',
|
|
466
|
+
'plan.sub': 'o plan não muda nada no servidor. A verificação prévia pode contactar o remoto git, por isso pode demorar.',
|
|
467
|
+
'plan.planning': 'A planear…',
|
|
468
|
+
'plan.again': 'Planear de novo',
|
|
469
|
+
'plan.run': 'Correr o plan',
|
|
470
|
+
'plan.planningText': 'As verificações prévias e o plan correm no servidor; nada muda lá.',
|
|
471
|
+
'plan.none': 'Ainda sem plano',
|
|
472
|
+
'plan.noneText': 'Corre um plan para ver o que um deploy faria, as perguntas que faria e tudo o que o impediria.',
|
|
473
|
+
'plan.noneBack': 'Nenhum plano voltou.',
|
|
474
|
+
'plan.wouldDo': 'O que uma execução faria',
|
|
475
|
+
'plan.goesOutTitle': 'O que vai sair',
|
|
476
|
+
'plan.commitCount': { one: '{count} commit', other: '{count} commits' },
|
|
477
|
+
'plan.diverged': '{added} novos · {removed} só no servidor',
|
|
478
|
+
'plan.behindCount': '{count} atrás',
|
|
479
|
+
'plan.rewritten': 'O ramo foi reescrito no remoto',
|
|
480
|
+
'plan.rewrittenHelp': 'Uma execução recusa-o: o merge é só fast-forward. Os commits que só existem no servidor perder-se-iam.',
|
|
481
|
+
'plan.behind': 'O ramo do remoto está atrás do servidor',
|
|
482
|
+
'plan.behindHelp': 'Uma execução recusa-o: o merge é só fast-forward.',
|
|
483
|
+
'plan.heldByRollback': 'Este commit está retido por um rollback',
|
|
484
|
+
'plan.heldByRollbackHelp': 'Uma execução recusa-o, a menos que faças deploy mesmo assim (--unhold).',
|
|
485
|
+
'plan.goesOut': 'Vai sair',
|
|
486
|
+
'plan.onlyOnServer': 'Só no servidor',
|
|
487
|
+
'plan.nothingNew': 'Nada de novo — o servidor já corre a ponta do ramo.',
|
|
488
|
+
'plan.noProblem': 'Nenhum problema encontrado.',
|
|
489
|
+
'plan.findings': 'Verificações',
|
|
490
|
+
'plan.errors': { one: '{count} erro', other: '{count} erros' },
|
|
491
|
+
'plan.warnings': { one: '{count} aviso', other: '{count} avisos' },
|
|
492
|
+
'sev.error': 'Erro ',
|
|
493
|
+
'sev.warning': 'Aviso ',
|
|
494
|
+
'plan.fix': 'Correcção: ',
|
|
495
|
+
'form.required': 'obrigatório',
|
|
496
|
+
'form.none': '(nenhum)',
|
|
497
|
+
'plan.deployTo': 'Fazer deploy para {name}?',
|
|
498
|
+
'plan.writeEnvOn': 'Escrever o .env em {name}?',
|
|
499
|
+
'plan.deployLine': 'Fetch, .env, build, migração, reinício, verificação de saúde — a execução continua no servidor se esta página fechar (excepto se for assistida).',
|
|
500
|
+
'plan.envLine': 'Só o .env e a infra dedicada; nada é compilado nem reiniciado.',
|
|
501
|
+
'plan.willMigrate': 'Isto vai migrar a base de dados.',
|
|
502
|
+
'plan.deploy': 'Fazer deploy',
|
|
503
|
+
'plan.writeEnv': 'Escrever .env',
|
|
504
|
+
'plan.envOn': 'env em {name}',
|
|
505
|
+
'plan.runAttended': 'execução em {name} (assistida)',
|
|
506
|
+
'plan.starting': 'A iniciar a execução no servidor…',
|
|
507
|
+
'plan.typeAgain': '{message} — escreve-o de novo',
|
|
508
|
+
'plan.willAsk': 'O que a execução vai perguntar',
|
|
509
|
+
'plan.secrets': 'Os segredos são enviados uma vez, pelo teu ssh, ao deploy no servidor; nunca ficam guardados aqui e os campos são esvaziados depois do envio.',
|
|
510
|
+
'plan.nothingToAnswer': 'Nada a responder: o .env está completo.',
|
|
511
|
+
'plan.unhold': ' Fazer deploy mesmo assim: o commit retido ',
|
|
512
|
+
'plan.unholdTail': ' pode ser publicado (--unhold)',
|
|
513
|
+
'plan.advanced': 'Avançado',
|
|
514
|
+
'plan.attended': ' Assistida: a execução pára no passo seguinte se esta página fechar ou a UI sair',
|
|
515
|
+
'plan.blocks': 'O plano encontrou problemas que impedem uma execução: corrige-os primeiro.',
|
|
516
|
+
'plan.writeEnvOnly': 'Escrever só o .env…',
|
|
517
|
+
'plan.deployEllipsis': 'Fazer deploy…',
|
|
518
|
+
'reason.skipped': 'o fetch está desligado, por isso uma execução publica o commit que já está no checkout',
|
|
519
|
+
'reason.not-fetched': 'o servidor não conseguiu obter o ramo do seu remoto',
|
|
520
|
+
'reason.no-previous': 'não há release anterior com que comparar',
|
|
521
|
+
'reason.missing-commit': 'um commit não está no checkout do servidor (histórico reescrito, ou nunca obtido lá)',
|
|
522
|
+
'reason.shallow': 'o checkout do servidor é um clone superficial, por isso o histórico está incompleto',
|
|
523
|
+
'reason.unrelated': 'os dois commits não partilham histórico',
|
|
524
|
+
'reason.timeout': 'o git demorou demasiado no servidor',
|
|
525
|
+
'reason.too-large': 'a resposta do git era grande demais',
|
|
526
|
+
'reason.malformed': 'não foi possível ler a resposta do git',
|
|
527
|
+
'reason.git-failed': 'o git falhou no servidor',
|
|
528
|
+
'reason.none': 'o servidor não deu um motivo utilizável',
|
|
529
|
+
'commits.unavailable': 'Lista de commits indisponível',
|
|
530
|
+
'commits.olderDeploy': 'o @basaltkit/deploy do servidor é anterior às listas de commits',
|
|
531
|
+
'commits.unreadable': 'não foi possível ler a resposta do servidor',
|
|
532
|
+
'commits.noAnswer': 'sem resposta',
|
|
533
|
+
'commits.noSubject': '(sem assunto)',
|
|
534
|
+
'commits.olderNotShown': { one: '+ {count} commit mais antigo não mostrado — o servidor envia no máximo {limit} por lista.', other: '+ {count} commits mais antigos não mostrados — o servidor envia no máximo {limit} por lista.' },
|
|
535
|
+
'commits.andMore': 'e mais {count}',
|
|
536
|
+
'history.sub': 'As últimas 10 releases que o servidor registou, da mais recente para a mais antiga.',
|
|
537
|
+
'history.loadStatus': 'Carrega primeiro o estado.',
|
|
538
|
+
'history.loadStatusText': 'As releases vêm com o estado do destino.',
|
|
539
|
+
'history.releases': 'Releases',
|
|
540
|
+
'history.recorded': '{count} registadas',
|
|
541
|
+
'history.none': 'Ainda não há release registada.',
|
|
542
|
+
'history.noneText': 'O primeiro deploy deste destino aparece aqui.',
|
|
543
|
+
'history.rollBack': 'Rollback',
|
|
544
|
+
'history.backTo': 'Voltar a',
|
|
545
|
+
'history.lastHealthy': 'a última release saudável (o deploy decide)',
|
|
546
|
+
'history.codeOnly': 'Só o código: a base de dados não volta atrás. O commit que sai fica retido: uma execução agendada não o volta a publicar até o ramo avançar.',
|
|
547
|
+
'history.preview': 'Pré-visualizar alterações',
|
|
548
|
+
'history.rollBackEllipsis': 'Fazer rollback…',
|
|
549
|
+
'history.rollBackConfirm': 'Fazer rollback',
|
|
550
|
+
'col.commit': 'Commit',
|
|
551
|
+
'col.when': 'Quando',
|
|
552
|
+
'col.status': 'Estado',
|
|
553
|
+
'col.actor': 'Actor',
|
|
554
|
+
'col.via': 'Via',
|
|
555
|
+
'col.client': 'Cliente',
|
|
556
|
+
'col.migrations': 'Migrações',
|
|
557
|
+
'col.backup': 'Cópia',
|
|
558
|
+
'col.note': 'Nota',
|
|
559
|
+
'history.changes': 'Alterações',
|
|
560
|
+
'history.between': 'Commits entre {from} e {to}',
|
|
561
|
+
'history.noEarlier': 'Não há release anterior com que comparar',
|
|
562
|
+
'history.showCommits': 'Mostrar os commits de {sha}',
|
|
563
|
+
'history.reading': 'A ler os commits no servidor…',
|
|
564
|
+
'history.readingLeaving': 'A ler o que sairia de produção…',
|
|
565
|
+
'history.broughtIn': 'Trouxe',
|
|
566
|
+
'history.takenOut': 'Retirou',
|
|
567
|
+
'history.same': 'O mesmo commit da release anterior: nada mudou.',
|
|
568
|
+
'history.leaves': 'Sai de produção',
|
|
569
|
+
'history.comesBack': 'Volta (não está na release actual)',
|
|
570
|
+
'history.nothingChanges': 'Nada muda.',
|
|
571
|
+
'history.previewFailed': 'Lista de commits indisponível: a pré-visualização falhou — o rollback continua a funcionar.',
|
|
572
|
+
'history.previewUnavailable': 'Lista de commits indisponível — o rollback continua a funcionar.',
|
|
573
|
+
'history.previewReason': 'Lista de commits indisponível: {reason} — o rollback continua a funcionar.',
|
|
574
|
+
'history.noneLeaves': 'Nenhum commit sai de produção.',
|
|
575
|
+
'history.rollBackTitle': 'Fazer rollback de {name}?',
|
|
576
|
+
'history.backToSha': 'Voltar a {sha}.',
|
|
577
|
+
'history.backToLastHealthy': 'Voltar à última release saudável.',
|
|
578
|
+
'history.backToLastHealthyNow': 'Voltar à última release saudável — agora {sha}.',
|
|
579
|
+
'history.heldUntil': 'O commit que sai fica retido até o ramo avançar.',
|
|
580
|
+
'history.starting': 'A iniciar o rollback…',
|
|
581
|
+
'release.ok': 'ok',
|
|
582
|
+
'release.failed': 'falhou',
|
|
583
|
+
'run.steps': 'Passos',
|
|
584
|
+
'run.log': 'Registo',
|
|
585
|
+
'run.findings': 'Verificações',
|
|
586
|
+
'run.resuming': '(a retomar a partir do evento {seq}: os anteriores já foram mostrados; «Mostrar desde o início» repete-os)',
|
|
587
|
+
'run.stoppedWatching': 'Deixaste de acompanhar (a execução continua no servidor).',
|
|
588
|
+
'run.streamEnded': 'O fluxo terminou.',
|
|
589
|
+
'run.connecting': 'A ligar a {ssh}…',
|
|
590
|
+
'run.reconnecting': 'Ligação perdida ({reason}); a religar dentro de {seconds} s a partir do evento {seq}…',
|
|
591
|
+
'run.unknownEvent': 'um evento que esta UI não conhece ({type}): ignorado',
|
|
592
|
+
'step.running': 'a correr',
|
|
593
|
+
'step.ok': 'ok',
|
|
594
|
+
'step.skipped': 'saltado',
|
|
595
|
+
'step.failed': 'falhou',
|
|
596
|
+
'run.step': 'Passo: {title}',
|
|
597
|
+
'run.asks': 'o deploy pergunta: {message} (responde no formulário e corre de novo)',
|
|
598
|
+
'run.wrapped': 'um evento embrulhado inesperado foi ignorado',
|
|
599
|
+
'run.noEnd': 'fim não visto',
|
|
600
|
+
'run.dropped': { one: ' ({count} linha mais antiga do registo retirada da página)', other: ' ({count} linhas mais antigas do registo retiradas da página)' },
|
|
601
|
+
'run.stoppedBecause': 'Parado: {why}',
|
|
602
|
+
'run.streamEndedLower': 'o fluxo terminou',
|
|
603
|
+
'run.mayStillRun': 'A execução pode continuar no servidor: volta a acompanhá-la para ver.',
|
|
604
|
+
'run.done': 'Concluído.',
|
|
605
|
+
'run.finishedOk': 'Terminou: saída 0',
|
|
606
|
+
'run.finishedWith': 'Terminou com saída {code}',
|
|
607
|
+
'run.cancelAgain': 'Cancelar de novo (parar já)…',
|
|
608
|
+
'run.cancel': 'Cancelar…',
|
|
609
|
+
'run.stopWatching': 'Deixar de acompanhar',
|
|
610
|
+
'run.reattach': 'Voltar a acompanhar',
|
|
611
|
+
'run.fromStart': 'Mostrar desde o início',
|
|
612
|
+
'run.refreshStatus': 'Actualizar o estado',
|
|
613
|
+
'run.stopNowTitle': 'Parar o deploy JÁ?',
|
|
614
|
+
'run.stopNowLine': 'Isto termina o deploy de imediato, a meio do passo.',
|
|
615
|
+
'run.halfApplied': 'Uma migração pode ficar aplicada a meio',
|
|
616
|
+
'run.restoreInLog': 'O comando para restaurar a cópia anterior ao deploy está no registo. O lock fica abandonado.',
|
|
617
|
+
'run.stopItNow': 'Parar já',
|
|
618
|
+
'run.cancelTitle': 'Cancelar a execução em {name}?',
|
|
619
|
+
'run.cancelLine': 'Pára no limite do passo seguinte antes da migração; a partir da migração, o deploy termina primeiro.',
|
|
620
|
+
'run.cancelSecondLine': 'Um segundo cancelamento pará-la-ia de imediato. Se esta execução já foi cancelada uma vez (num terminal ou noutra sessão), nada é enviado agora: és questionado de novo primeiro.',
|
|
621
|
+
'run.cancelRun': 'Cancelar a execução',
|
|
622
|
+
'run.cancelSentTwice': 'cancelamento enviado pela segunda vez: o deploy pára de imediato',
|
|
623
|
+
'run.cancelSent': 'cancelamento enviado: o deploy pára no próximo ponto seguro',
|
|
624
|
+
'run.release': 'Release {sha}: {status}',
|
|
625
|
+
'run.migrations': 'migrações: {list}',
|
|
626
|
+
'run.rolledBack': 'Rollback para {sha}: {status}',
|
|
627
|
+
'run.isHeld': '{sha} está retido',
|
|
628
|
+
'run.deployChose': 'O deploy escolheu {to}, não {previewed} que a pré-visualização mostrou: abre o Histórico para ver o que mudou.',
|
|
629
|
+
'run.envWritten': { one: '.env escrito ({count} alteração)', other: '.env escrito ({count} alterações)' },
|
|
630
|
+
'run.result': 'resultado de {command}',
|
|
631
|
+
'run.title': 'execução {runId}',
|
|
632
|
+
'run.rollbackTitle': 'rollback {runId}',
|
|
633
|
+
'field.name': 'Nome',
|
|
634
|
+
'field.name.help': 'letras minúsculas, dígitos e -, p. ex. staging',
|
|
635
|
+
'field.ssh': 'Destino SSH',
|
|
636
|
+
'field.ssh.help': '[utilizador@]host, ou um alias Host do teu ~/.ssh/config (jump hosts e chaves vão lá)',
|
|
637
|
+
'field.port': 'Porta',
|
|
638
|
+
'field.port.help': 'opcional; por omissão: o teu ~/.ssh/config, senão 22',
|
|
639
|
+
'field.dir': 'Checkout no servidor',
|
|
640
|
+
'field.dir.help': 'caminho absoluto, p. ex. /srv/myapp',
|
|
641
|
+
'field.node': 'node no servidor',
|
|
642
|
+
'field.node.help': 'caminho absoluto opcional, quando uma shell não interactiva não tem node no PATH',
|
|
643
|
+
'field.config': 'Ficheiro de configuração',
|
|
644
|
+
'field.config.help': 'opcional, relativo ao checkout (por omissão deploy.config.ts)',
|
|
645
|
+
'field.protected': 'Protegido: escrever o nome para fazer deploy ou rollback',
|
|
646
|
+
'targets.none': 'Ainda sem destinos',
|
|
647
|
+
'targets.noneText': 'Ainda não há destinos. Adiciona o servidor a que já chegas por ssh como utilizador da app.',
|
|
648
|
+
'targets.servers': 'Servidores',
|
|
649
|
+
'targets.ssh': 'SSH',
|
|
650
|
+
'targets.checkout': 'Checkout',
|
|
651
|
+
'targets.protection': 'Protecção',
|
|
652
|
+
'targets.actions': 'Acções',
|
|
653
|
+
'targets.protected': 'protegido',
|
|
654
|
+
'targets.use': 'Usar',
|
|
655
|
+
'targets.check': 'Testar a ligação',
|
|
656
|
+
'targets.edit': 'Editar',
|
|
657
|
+
'targets.remove': 'Remover',
|
|
658
|
+
'targets.count': { one: '{count} destino', other: '{count} destinos' },
|
|
659
|
+
'targets.storedIn': 'Guardados só nesta máquina, em ',
|
|
660
|
+
'targets.storedTail': ' (0600). Não contêm segredos.',
|
|
661
|
+
'targets.add': 'Adicionar um destino',
|
|
662
|
+
'targets.connecting': 'A ligar a {ssh}…',
|
|
663
|
+
'targets.answers': '{name} responde: @basaltkit/deploy {version}, protocolo 1, host {host}',
|
|
664
|
+
'targets.removeTitle': 'Remover {name}?',
|
|
665
|
+
'targets.removeLine': 'Só esta UI o esquece; nada muda no servidor.',
|
|
666
|
+
'targets.actorHelp': 'Registado com cada release como --actor (letras, dígitos e ._@+-).',
|
|
667
|
+
'targets.saved': 'Guardado.',
|
|
668
|
+
'targets.auditActor': 'Actor da auditoria',
|
|
669
|
+
'targets.audit': 'Auditoria',
|
|
670
|
+
'targets.actorLabel': 'O teu nome na auditoria (actor)',
|
|
671
|
+
'targets.saveActor': 'Guardar o actor',
|
|
672
|
+
'targets.editTitle': 'Editar {name}',
|
|
673
|
+
'dialog.protected': ' Este destino está protegido.',
|
|
674
|
+
'dialog.typeTo': 'Escreve ',
|
|
675
|
+
'dialog.toConfirm': ' para confirmar',
|
|
676
|
+
};
|
|
677
|
+
/** Both catalogs, for the test that keeps their keys and placeholders in step. */
|
|
678
|
+
export const CATALOGS = { en, pt };
|
|
679
|
+
let current = 'en';
|
|
680
|
+
let languages = [];
|
|
681
|
+
/** The page's language from now on; views read it at render time, so a re-render switches in place. */
|
|
682
|
+
export function setLocale(locale, browserLanguages = languages) {
|
|
683
|
+
current = locale;
|
|
684
|
+
languages = browserLanguages;
|
|
685
|
+
}
|
|
686
|
+
export const getLocale = () => current;
|
|
687
|
+
export const isLocale = (value) => value === 'en' || value === 'pt';
|
|
688
|
+
/** The saved choice, else the browser's first language the page speaks, else English. */
|
|
689
|
+
export function pickLocale(saved, browserLanguages = []) {
|
|
690
|
+
if (isLocale(saved))
|
|
691
|
+
return saved;
|
|
692
|
+
for (const language of browserLanguages) {
|
|
693
|
+
const base = language.toLowerCase().split('-')[0];
|
|
694
|
+
if (isLocale(base))
|
|
695
|
+
return base;
|
|
696
|
+
}
|
|
697
|
+
return 'en';
|
|
698
|
+
}
|
|
699
|
+
/** For dates: the browser's own variant of the page's language (pt-AO, en-GB…), else the bare one. */
|
|
700
|
+
export function formatLocale() {
|
|
701
|
+
const own = languages.find((l) => l.toLowerCase().split('-')[0] === current);
|
|
702
|
+
if (own) {
|
|
703
|
+
try {
|
|
704
|
+
if (Intl.getCanonicalLocales(own).length > 0)
|
|
705
|
+
return own;
|
|
706
|
+
}
|
|
707
|
+
catch {
|
|
708
|
+
// Not a BCP-47 tag: the bare language.
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
return current;
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* The plural rules the catalogs are written for: the Portuguese one is
|
|
715
|
+
* European (as in Angola: "0 avisos"), whatever variant the browser names.
|
|
716
|
+
*/
|
|
717
|
+
const PLURALS = { en: 'en', pt: 'pt-PT' };
|
|
718
|
+
/** A message in the page's language: `{param}` filled in, plural forms picked by `count`. */
|
|
719
|
+
export function t(key, params = {}) {
|
|
720
|
+
return render(CATALOGS[current][key], PLURALS[current], params);
|
|
721
|
+
}
|
|
722
|
+
/** Why a commit list is missing, in fixed local text: the server's wording never reaches the page. */
|
|
723
|
+
export function reasonText(reason) {
|
|
724
|
+
return typeof reason === 'string' && Object.hasOwn(en, `reason.${reason}`) && reason !== 'none'
|
|
725
|
+
? t(`reason.${reason}`)
|
|
726
|
+
: t('reason.none');
|
|
727
|
+
}
|
|
728
|
+
/**
|
|
729
|
+
* The local server's fixed wording (targets.ts, server.ts, remote.ts,
|
|
730
|
+
* stream.ts), translated when it matches exactly; any other text — the
|
|
731
|
+
* remote deploy's, or a refusal not listed — comes back unchanged.
|
|
732
|
+
* tests/i18n.test.ts keeps the English side equal to what the server says.
|
|
733
|
+
*/
|
|
734
|
+
export const SERVER_TEXT_PT = {
|
|
735
|
+
'the target is refused': 'o destino foi recusado',
|
|
736
|
+
'the actor is refused': 'o actor foi recusado',
|
|
737
|
+
'the language is refused': 'o idioma foi recusado',
|
|
738
|
+
'lowercase letters, digits and -, at most 40, starting with a letter or digit': 'letras minúsculas, dígitos e -, no máximo 40, a começar por letra ou dígito',
|
|
739
|
+
'[user@]host or a Host alias from ~/.ssh/config: no spaces, no leading -, no ssh:// URL': '[utilizador@]host ou um alias Host do ~/.ssh/config: sem espaços, sem - inicial, sem URL ssh://',
|
|
740
|
+
'a whole number from 1 to 65535': 'um número inteiro de 1 a 65535',
|
|
741
|
+
'an absolute path of letters, digits and ._@+/- (no .., no //)': 'um caminho absoluto de letras, dígitos e ._@+/- (sem .., sem //)',
|
|
742
|
+
'an absolute path to node on the server (no .., no //)': 'um caminho absoluto para o node no servidor (sem .., sem //)',
|
|
743
|
+
'a path relative to the checkout (no .., no leading /)': 'um caminho relativo ao checkout (sem .., sem / inicial)',
|
|
744
|
+
'true or false': 'true ou false',
|
|
745
|
+
'letters, digits and ._@+-, at most 64': 'letras, dígitos e ._@+-, no máximo 64',
|
|
746
|
+
'no ssh client was found': 'não foi encontrado nenhum cliente ssh',
|
|
747
|
+
'install OpenSSH (on Windows: the OpenSSH Client optional feature), or pass --ssh=<absolute path>': 'instala o OpenSSH (no Windows: a funcionalidade opcional OpenSSH Client), ou passa --ssh=<caminho absoluto>',
|
|
748
|
+
'stopped by the UI': 'parado pela UI',
|
|
749
|
+
'the command took too long and was stopped': 'o comando demorou demasiado e foi parado',
|
|
750
|
+
'no protocol output from the server': 'o servidor não respondeu com o protocolo',
|
|
751
|
+
'is the account\'s login shell POSIX (sh, bash, zsh)? Does the app\'s @basaltkit/deploy speak protocol 1 (the release with RFC 0008)? Upgrade it in the app and deploy once from a terminal': 'a shell de login da conta é POSIX (sh, bash, zsh)? O @basaltkit/deploy da app fala o protocolo 1 (a versão com o RFC 0008)? Actualiza-o na app e faz um deploy a partir de um terminal',
|
|
752
|
+
'this server\'s @basaltkit/deploy does not speak protocol 1': 'o @basaltkit/deploy deste servidor não fala o protocolo 1',
|
|
753
|
+
'the UI stopped watching; the run goes on on the server': 'a UI deixou de acompanhar; a execução continua no servidor',
|
|
754
|
+
're-attach when the network is back': 'volta a acompanhar quando a rede voltar',
|
|
755
|
+
'cancel needs a confirmation': 'o cancelamento precisa de confirmação',
|
|
756
|
+
'this run was already cancelled once (from a terminal, another session or this page): a second cancel ends it at once, mid-step — confirm that explicitly': 'esta execução já foi cancelada uma vez (num terminal, noutra sessão ou nesta página): um segundo cancelamento termina-a de imediato, a meio do passo — confirma-o explicitamente',
|
|
757
|
+
};
|
|
758
|
+
export const SERVER_PATTERNS_PT = [
|
|
759
|
+
[/^"([a-z0-9-]{1,40})" is already a target$/, (name) => `"${name}" já é um destino`],
|
|
760
|
+
[/^no target "([a-z0-9-]{1,40})"$/, (name) => `não há destino "${name}"`],
|
|
761
|
+
[/^at most (\d{1,4}) ssh sessions at a time$/, (n) => `no máximo ${n} sessões ssh ao mesmo tempo`],
|
|
762
|
+
[/^a change to ([a-z0-9-]{1,40}) is already in progress from this UI$/, (name) => `já está em curso uma alteração a ${name} a partir desta UI`],
|
|
763
|
+
[/^run plan for ([a-z0-9-]{1,40}) first: answers are checked against its questions$/, (name) => `corre primeiro o plan de ${name}: as respostas são verificadas contra as suas perguntas`],
|
|
764
|
+
];
|
|
765
|
+
/** The local server's text in the page's language, when it is one of its fixed sentences. */
|
|
766
|
+
export function serverText(value) {
|
|
767
|
+
if (current === 'en')
|
|
768
|
+
return value;
|
|
769
|
+
if (Object.hasOwn(SERVER_TEXT_PT, value))
|
|
770
|
+
return SERVER_TEXT_PT[value];
|
|
771
|
+
for (const [pattern, translate] of SERVER_PATTERNS_PT) {
|
|
772
|
+
const match = pattern.exec(value);
|
|
773
|
+
if (match)
|
|
774
|
+
return translate(...match.slice(1));
|
|
775
|
+
}
|
|
776
|
+
return value;
|
|
777
|
+
}
|