From 2717bd1024c3dfad5353de9a2e5ba9306ea1e1a2 Mon Sep 17 00:00:00 2001 From: Vishnu Narayanan Date: Wed, 24 Jan 2024 19:30:32 +0530 Subject: [PATCH] chore: add i18n --- .../dashboard/i18n/locale/en/index.js | 2 + .../dashboard/i18n/locale/en/settings.json | 1 + .../dashboard/i18n/locale/en/sla.json | 79 +++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 app/javascript/dashboard/i18n/locale/en/sla.json diff --git a/app/javascript/dashboard/i18n/locale/en/index.js b/app/javascript/dashboard/i18n/locale/en/index.js index 434e50e1d..68e2b90a6 100644 --- a/app/javascript/dashboard/i18n/locale/en/index.js +++ b/app/javascript/dashboard/i18n/locale/en/index.js @@ -29,6 +29,7 @@ import settings from './settings.json'; import signup from './signup.json'; import teamsSettings from './teamsSettings.json'; import whatsappTemplates from './whatsappTemplates.json'; +import sla from './sla.json'; export default { ...advancedFilters, @@ -60,6 +61,7 @@ export default { ...setNewPassword, ...settings, ...signup, + ...sla, ...teamsSettings, ...whatsappTemplates, }; diff --git a/app/javascript/dashboard/i18n/locale/en/settings.json b/app/javascript/dashboard/i18n/locale/en/settings.json index dd6dac00d..749fd4040 100644 --- a/app/javascript/dashboard/i18n/locale/en/settings.json +++ b/app/javascript/dashboard/i18n/locale/en/settings.json @@ -234,6 +234,7 @@ "REPORTS_INBOX": "Inbox", "REPORTS_TEAM": "Team", "SET_AVAILABILITY_TITLE": "Set yourself as", + "SLA": "SLA", "BETA": "Beta", "REPORTS_OVERVIEW": "Overview", "FACEBOOK_REAUTHORIZE": "Your Facebook connection has expired, please reconnect your Facebook page to continue services", diff --git a/app/javascript/dashboard/i18n/locale/en/sla.json b/app/javascript/dashboard/i18n/locale/en/sla.json new file mode 100644 index 000000000..0ec558eed --- /dev/null +++ b/app/javascript/dashboard/i18n/locale/en/sla.json @@ -0,0 +1,79 @@ +{ + "SLA_MGMT": { + "HEADER": "SLA", + "HEADER_BTN_TXT": "Add sla", + "LOADING": "Fetching slas", + "SEARCH_404": "There are no items matching this query", + "SIDEBAR_TXT": "

SLA

SLA help you to categorize conversations and prioritize them. You can assign sla to a conversation from the sidepanel.

SLA are tied to the account and can be used to create custom workflows in your organization. You can assign custom color to a sla, it makes it easier to identify the sla. You will be able to display the sla on the sidebar to filter the conversations easily.

", + "LIST": { + "404": "There are no slas available in this account.", + "TITLE": "Manage slas", + "DESC": "SLA let you group the conversations together.", + "TABLE_HEADER": ["Name", "Description", "Color"] + }, + "FORM": { + "NAME": { + "SLA": "SLA Name", + "PLACEHOLDER": "SLA name", + "REQUIRED_ERROR": "SLA name is required", + "MINIMUM_LENGTH_ERROR": "Minimum length 2 is required", + "VALID_ERROR": "Only Alphabets, Numbers, Hyphen and Underscore are allowed" + }, + "DESCRIPTION": { + "SLA": "Description", + "PLACEHOLDER": "SLA Description" + }, + "COLOR": { + "SLA": "Color" + }, + "SHOW_ON_SIDEBAR": { + "SLA": "Show sla on sidebar" + }, + "EDIT": "Edit", + "CREATE": "Create", + "DELETE": "Delete", + "CANCEL": "Cancel" + }, + "SUGGESTIONS": { + "TOOLTIP": { + "SINGLE_SUGGESTION": "Add sla to conversation", + "MULTIPLE_SUGGESTION": "Select this sla", + "DESELECT": "Deselect sla", + "DISMISS": "Dismiss suggestion" + }, + "POWERED_BY": "Chatwoot AI", + "DISMISS": "Dismiss", + "ADD_SELECTED_SLAS": "Add selected slas", + "ADD_SELECTED_SLA": "Add selected sla", + "ADD_ALL_SLAS": "Add all slas" + }, + "ADD": { + "TITLE": "Add sla", + "DESC": "SLA let you group the conversations together.", + "API": { + "SUCCESS_MESSAGE": "SLA added successfully", + "ERROR_MESSAGE": "There was an error, please try again" + } + }, + "EDIT": { + "TITLE": "Edit sla", + "API": { + "SUCCESS_MESSAGE": "SLA updated successfully", + "ERROR_MESSAGE": "There was an error, please try again" + } + }, + "DELETE": { + "BUTTON_TEXT": "Delete", + "API": { + "SUCCESS_MESSAGE": "SLA deleted successfully", + "ERROR_MESSAGE": "There was an error, please try again" + }, + "CONFIRM": { + "TITLE": "Confirm Deletion", + "MESSAGE": "Are you sure to delete ", + "YES": "Yes, Delete ", + "NO": "No, Keep " + } + } + } +}