Add autocompletion for i18n keys in script sections of Vue files (#3133)

* 📘 Type `baseText()` to i18n keys

* 📘 Adjust `baseText()` signature

* 👕 Except JSON files from Vue ESLint

* 🐛 Fix errors surfaced by `baseText()` typing

*  Pluralize keys

* 📘 Add typing for category names

*  Mark internal keys

* ✏️ Update docs references

* 🎨 Prettify syntax

* 🐛 Fix leftover internal key references
This commit is contained in:
Iván Ovejero
2022-04-15 08:22:58 +02:00
committed by GitHub
parent 8532b0030d
commit 18dee373d5
13 changed files with 95 additions and 55 deletions

View File

@@ -1,4 +1,9 @@
{
"_reusableBaseText.cancel": "Cancel",
"_reusableBaseText.name": "Name",
"_reusableBaseText.save": "Save",
"_reusableDynamicText.oauth2.clientId": "Client ID",
"_reusableDynamicText.oauth2.clientSecret": "Client Secret",
"about.aboutN8n": "About n8n",
"about.close": "Close",
"about.license": "License",
@@ -44,10 +49,8 @@
"auth.setup.ownerAccountBenefits": "Setting up an owner account allows you to invite others, and prevents people using n8n without an account",
"auth.setup.settingUpOwnerError": "Problem setting up owner",
"auth.setup.setupConfirmation.concatEntities": "{workflows} and {credentials}",
"auth.setup.setupConfirmation.credentialsCount": "{count} credentials",
"auth.setup.setupConfirmation.oneCredentialCount": "{count} credential",
"auth.setup.setupConfirmation.oneWorkflowCount": "{count} existing workflow",
"auth.setup.setupConfirmation.workflowsCount": "{count} existing workflows",
"auth.setup.setupConfirmation.credentials": "{count} credential | {count} credentials",
"auth.setup.setupConfirmation.existingWorkflows": "{count} existing workflow | {count} existing workflows",
"auth.setup.setupOwner": "Set up owner account",
"auth.setup.skipOwnerSetupQuestion": "Skip owner account setup?",
"auth.setup.skipSetup": "Skip setup",
@@ -131,7 +134,7 @@
"credentialsList.deleteCredential": "Delete Credential",
"credentialsList.editCredential": "Edit Credential",
"credentialsList.errorLoadingCredentials": "Error loading credentials",
"credentialsList.name": "@:reusableBaseText.name",
"credentialsList.name": "@:_reusableBaseText.name",
"credentialsList.operations": "Operations",
"credentialsList.showError.deleteCredential.title": "Problem deleting credential",
"credentialsList.showMessage.title": "Credential deleted",
@@ -144,11 +147,11 @@
"displayWithChange.cancelEdit": "Cancel Edit",
"displayWithChange.clickToChange": "Click to Change",
"displayWithChange.setValue": "Set Value",
"duplicateWorkflowDialog.cancel": "@:reusableBaseText.cancel",
"duplicateWorkflowDialog.cancel": "@:_reusableBaseText.cancel",
"duplicateWorkflowDialog.chooseOrCreateATag": "Choose or create a tag",
"duplicateWorkflowDialog.duplicateWorkflow": "Duplicate Workflow",
"duplicateWorkflowDialog.enterWorkflowName": "Enter workflow name",
"duplicateWorkflowDialog.save": "@:reusableBaseText.save",
"duplicateWorkflowDialog.save": "@:_reusableBaseText.save",
"duplicateWorkflowDialog.showMessage.message": "Please enter a name.",
"duplicateWorkflowDialog.showMessage.title": "Name missing",
"error": "Error",
@@ -181,7 +184,7 @@
"executionsList.modes.retry": "retry",
"executionsList.modes.trigger": "trigger",
"executionsList.modes.webhook": "webhook",
"executionsList.name": "@:reusableBaseText.name",
"executionsList.name": "@:_reusableBaseText.name",
"executionsList.openPastExecution": "Open Past Execution",
"executionsList.retryExecution": "Retry execution",
"executionsList.retryOf": "Retry of",
@@ -267,12 +270,12 @@
"mainSidebar.new": "New",
"mainSidebar.newTemplate": "New from template",
"mainSidebar.open": "Open",
"mainSidebar.prompt.cancel": "@:reusableBaseText.cancel",
"mainSidebar.prompt.cancel": "@:_reusableBaseText.cancel",
"mainSidebar.prompt.import": "Import",
"mainSidebar.prompt.importWorkflowFromUrl": "Import Workflow from URL",
"mainSidebar.prompt.invalidUrl": "Invalid URL",
"mainSidebar.prompt.workflowUrl": "Workflow URL",
"mainSidebar.save": "@:reusableBaseText.save",
"mainSidebar.save": "@:_reusableBaseText.save",
"mainSidebar.settings": "Settings",
"mainSidebar.showError.stopExecution.title": "Problem stopping execution",
"mainSidebar.showMessage.handleFileImport.message": "The file does not contain valid JSON data",
@@ -427,7 +430,7 @@
"nodeView.loadingTemplate": "Loading template",
"nodeView.moreInfo": "More info",
"nodeView.noNodesGivenToAdd": "No nodes to add specified",
"nodeView.prompt.cancel": "@:reusableBaseText.cancel",
"nodeView.prompt.cancel": "@:_reusableBaseText.cancel",
"nodeView.prompt.invalidName": "Invalid Name",
"nodeView.prompt.newName": "New Name",
"nodeView.prompt.rename": "Rename",
@@ -573,11 +576,6 @@
"pushConnection.showMessage.title": "Workflow executed successfully",
"pushConnectionTracker.cannotConnectToServer": "You have a connection issue or the server is down. <br />n8n should reconnect automatically once the issue is resolved.",
"pushConnectionTracker.connectionLost": "Connection lost",
"reusableBaseText.cancel": "Cancel",
"reusableBaseText.name": "Name",
"reusableBaseText.save": "Save",
"reusableDynamicText.oauth2.clientId": "Client ID",
"reusableDynamicText.oauth2.clientSecret": "Client Secret",
"runData.binary": "Binary",
"runData.copyItemPath": "Copy Item Path",
"runData.copyParameterPath": "Copy Parameter Path",
@@ -600,7 +598,7 @@
"runData.showBinaryData": "View",
"runData.startTime": "Start Time",
"runData.table": "Table",
"saveButton.save": "@:reusableBaseText.save",
"saveButton.save": "@:_reusableBaseText.save",
"saveButton.saved": "Saved",
"saveButton.saving": "Saving",
"settings": "Settings",
@@ -649,7 +647,7 @@
"settings.users.usersInvited": "Users invited",
"settings.users.usersInvitedError": "Could not invite users",
"settings.version": "Version",
"showMessage.cancel": "@:reusableBaseText.cancel",
"showMessage.cancel": "@:_reusableBaseText.cancel",
"showMessage.ok": "OK",
"showMessage.showDetails": "Show Details",
"startupError": "Error connecting to n8n",
@@ -674,11 +672,11 @@
"tagsManager.showMessage.onUpdate.title": "Tag updated",
"tagsManager.tagNameCannotBeEmpty": "Tag name cannot be empty",
"tagsTable.areYouSureYouWantToDeleteThisTag": "Are you sure you want to delete this tag?",
"tagsTable.cancel": "@:reusableBaseText.cancel",
"tagsTable.cancel": "@:_reusableBaseText.cancel",
"tagsTable.createTag": "Create tag",
"tagsTable.deleteTag": "Delete tag",
"tagsTable.editTag": "Edit Tag",
"tagsTable.name": "@:reusableBaseText.name",
"tagsTable.name": "@:_reusableBaseText.name",
"tagsTable.noMatchingTagsExist": "No matching tags exist",
"tagsTable.saveChanges": "Save changes?",
"tagsTable.usage": "Usage",
@@ -784,7 +782,7 @@
"workflowOpen.couldNotLoadActiveWorkflows": "Could not load active workflows",
"workflowOpen.created": "Created",
"workflowOpen.filterWorkflows": "Filter by tags",
"workflowOpen.name": "@:reusableBaseText.name",
"workflowOpen.name": "@:_reusableBaseText.name",
"workflowOpen.openWorkflow": "Open Workflow",
"workflowOpen.searchWorkflows": "Search workflows...",
"workflowOpen.showError.title": "Problem loading workflows",
@@ -813,15 +811,15 @@
"workflowSettings.hours": "hours",
"workflowSettings.minutes": "minutes",
"workflowSettings.noWorkflow": "- No Workflow -",
"workflowSettings.save": "@:reusableBaseText.save",
"workflowSettings.save": "@:_reusableBaseText.save",
"workflowSettings.saveDataErrorExecution": "Save failed executions",
"workflowSettings.saveDataErrorExecutionOptions.defaultSave": "Default - {defaultValue}",
"workflowSettings.saveDataErrorExecutionOptions.doNotSave": "Do not save",
"workflowSettings.saveDataErrorExecutionOptions.save": "@:reusableBaseText.save",
"workflowSettings.saveDataErrorExecutionOptions.save": "@:_reusableBaseText.save",
"workflowSettings.saveDataSuccessExecution": "Save successful executions",
"workflowSettings.saveDataSuccessExecutionOptions.defaultSave": "Default - {defaultValue}",
"workflowSettings.saveDataSuccessExecutionOptions.doNotSave": "Do not save",
"workflowSettings.saveDataSuccessExecutionOptions.save": "@:reusableBaseText.save",
"workflowSettings.saveDataSuccessExecutionOptions.save": "@:_reusableBaseText.save",
"workflowSettings.saveExecutionProgress": "Save execution progress",
"workflowSettings.saveExecutionProgressOptions.defaultSave": "Default - {defaultValue}",
"workflowSettings.saveExecutionProgressOptions.no": "No",