diff --git a/.eslintrc.js b/.eslintrc.js index 3783d8b85..9a18b1f88 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -53,6 +53,61 @@ module.exports = { ], 'vue/define-props-declaration': ['error', 'runtime'], 'vue/match-component-import-name': ['error'], + 'vue/no-bare-strings-in-template': [ + 'error', + { + allowlist: [ + '(', + ')', + ',', + '.', + '&', + '+', + '-', + '=', + '*', + '/', + '#', + '%', + '!', + '?', + ':', + '[', + ']', + '{', + '}', + '<', + '>', + '⌘', + 'πŸ“„', + 'πŸŽ‰', + 'πŸ’¬', + 'πŸ‘₯', + 'πŸ“₯', + 'πŸ”–', + '❌', + 'βœ…', + '\u00b7', + '\u2022', + '\u2010', + '\u2013', + '\u2014', + '\u2212', + '|', + ], + attributes: { + '/.+/': [ + 'title', + 'aria-label', + 'aria-placeholder', + 'aria-roledescription', + 'aria-valuetext', + ], + input: ['placeholder'], + }, + directives: ['v-text'], + }, + ], 'vue/max-attributes-per-line': [ 'error', { diff --git a/app/javascript/dashboard/components/widgets/AutomationActionInput.vue b/app/javascript/dashboard/components/widgets/AutomationActionInput.vue index 030cd9af9..cbd5c13b1 100644 --- a/app/javascript/dashboard/components/widgets/AutomationActionInput.vue +++ b/app/javascript/dashboard/components/widgets/AutomationActionInput.vue @@ -153,14 +153,14 @@ export default { v-model="action_params" type="email" class="answer--text-input" - placeholder="Enter email" + :placeholder="$t('AUTOMATION.ACTION.EMAIL_INPUT_PLACEHOLDER')" /> -
+
⌘ {{ keyShortcut.key }}
{{ keyShortcut.description }} diff --git a/app/javascript/dashboard/components/widgets/conversation/conversation/LabelSuggestion.vue b/app/javascript/dashboard/components/widgets/conversation/conversation/LabelSuggestion.vue index ad2319ad0..889051674 100644 --- a/app/javascript/dashboard/components/widgets/conversation/conversation/LabelSuggestion.vue +++ b/app/javascript/dashboard/components/widgets/conversation/conversation/LabelSuggestion.vue @@ -148,7 +148,9 @@ export default { >
-
Suggested labels
+
+ {{ $t('LABEL_MGMT.SUGGESTIONS.SUGGESTED_LABELS') }} +
-
+
{{ $t('BULK_ACTION.AGENT_SELECT_LABEL') }}
  • diff --git a/app/javascript/dashboard/components/widgets/conversation/conversationBulkActions/LabelActions.vue b/app/javascript/dashboard/components/widgets/conversation/conversationBulkActions/LabelActions.vue index 5093ffc2f..16caec1c0 100644 --- a/app/javascript/dashboard/components/widgets/conversation/conversationBulkActions/LabelActions.vue +++ b/app/javascript/dashboard/components/widgets/conversation/conversationBulkActions/LabelActions.vue @@ -37,7 +37,7 @@ export default {
  • -
    +
    {{ $t('BULK_ACTION.LABELS.ASSIGN_LABELS') }}
    @@ -79,7 +79,7 @@ export default { class="label-checkbox" /> {{ label.title }} diff --git a/app/javascript/dashboard/components/widgets/conversation/conversationBulkActions/TeamActions.vue b/app/javascript/dashboard/components/widgets/conversation/conversationBulkActions/TeamActions.vue index b67440172..345bf1395 100644 --- a/app/javascript/dashboard/components/widgets/conversation/conversationBulkActions/TeamActions.vue +++ b/app/javascript/dashboard/components/widgets/conversation/conversationBulkActions/TeamActions.vue @@ -58,7 +58,7 @@ export default { ref="search" v-model="query" type="search" - placeholder="Search" + :placeholder="$t('BULK_ACTION.SEARCH_INPUT_PLACEHOLDER')" class="agent--search_input" />
    diff --git a/app/javascript/dashboard/components/widgets/forms/PhoneInput.vue b/app/javascript/dashboard/components/widgets/forms/PhoneInput.vue index 7a2453bca..e08c52e1b 100644 --- a/app/javascript/dashboard/components/widgets/forms/PhoneInput.vue +++ b/app/javascript/dashboard/components/widgets/forms/PhoneInput.vue @@ -167,9 +167,9 @@ export default {