chore: translation updates

This commit is contained in:
Muhsin Keloth
2024-05-13 19:13:03 +05:30
parent e1bfd9a17a
commit bc5449f208
3 changed files with 9 additions and 10 deletions
@@ -215,7 +215,9 @@
"TITLE": "Link",
"EMPTY_LIST": "No linear issues found",
"LOADING": "Loading",
"ERROR": "There was an error fetching the linear issues, please try again"
"ERROR": "There was an error fetching the linear issues, please try again",
"LINK_SUCCESS": "Issue linked successfully",
"LINK_ERROR": "There was an error linking the issue, please try again"
},
"ADD_OR_LINK": {
"TITLE": "Create/link linear issue",
@@ -227,8 +229,7 @@
"REQUIRED_ERROR": "Title is required"
},
"DESCRIPTION": {
"LABEL": "Description",
"PLACEHOLDER": "SLA for premium customers"
"LABEL": "Description"
},
"TEAM": {
"LABEL": "Team",
@@ -40,7 +40,7 @@
:is-loading="isLinking"
@click.prevent="linkIssue"
>
{{ $t('INTEGRATION_SETTINGS.LINEAR.ADD_OR_LINK.CREATE') }}
{{ $t('INTEGRATION_SETTINGS.LINEAR.LINK.TITLE') }}
</woot-button>
</div>
</div>
@@ -111,14 +111,12 @@ export default {
this.isLinking = true;
await LinearAPI.link_issue(this.conversationId, issueId);
this.showAlert(
this.$t('INTEGRATION_SETTINGS.LINEAR.ADD_OR_LINK.CREATE_SUCCESS')
this.$t('INTEGRATION_SETTINGS.LINEAR.LINK.LINK_SUCCESS')
);
this.searchQuery = '';
this.onClose();
} catch (error) {
this.showAlert(
this.$t('INTEGRATION_SETTINGS.LINEAR.ADD_OR_LINK.CREATE_ERROR')
);
this.showAlert(this.$t('INTEGRATION_SETTINGS.LINEAR.LINK.LINK_ERROR'));
} finally {
this.isLinking = false;
}
@@ -91,8 +91,8 @@ export default {
try {
this.isFetching = true;
const response = await LinearAPI.getLinkedIssue(this.conversationId);
const { issues = [] } = response.data;
this.linkedIssue = issues.length ? issues[0] : null;
const issues = response.data;
this.linkedIssue = issues && issues.length ? issues[0] : null;
} catch (error) {
this.showAlert(this.$t('INTEGRATION_SETTINGS.LINEAR.LOADING_ERROR'));
} finally {