feat: implement fixed local API port settings for desktop app, allowing users to specify a port for consistent access, with corresponding UI and translations

This commit is contained in:
wizardchen
2026-04-11 16:02:52 +08:00
committed by lyingbug
parent 3f0f69815f
commit d99e2cbac3
13 changed files with 392 additions and 279 deletions
+8 -1
View File
@@ -1979,7 +1979,14 @@ export default {
createdAtDescription: 'Time when the account was created',
noKey: 'No API Key available',
copySuccess: 'API Key copied to clipboard',
copyFailed: 'Copy failed, please copy manually'
copyFailed: 'Copy failed, please copy manually',
desktopPortLabel: 'Local API port (desktop)',
desktopPortDescription:
'Use a fixed port (e.g. 37841) so tools like the Chrome extension can keep the same API URL. 0 means a random port each launch. Restart the app after saving.',
desktopPortSave: 'Save',
desktopPortSaved: 'Saved. Restart the app for it to take effect.',
desktopPortSaveFailed: 'Save failed',
desktopPortInvalid: 'Enter a port between 0 and 65535',
}
},
system: {