From f8862cef7d88ff50044069e975080502d93d4458 Mon Sep 17 00:00:00 2001 From: amit-s19 Date: Tue, 27 Feb 2024 17:37:29 +0530 Subject: [PATCH] added or support --- apps/amakrushi/src/components/chat-message-item/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/amakrushi/src/components/chat-message-item/index.tsx b/apps/amakrushi/src/components/chat-message-item/index.tsx index 4d36c78..8c8900d 100644 --- a/apps/amakrushi/src/components/chat-message-item/index.tsx +++ b/apps/amakrushi/src/components/chat-message-item/index.tsx @@ -323,11 +323,11 @@ const ChatMessageItem: FC = ({ message, onSend }) => { } if (words?.[0]?.includes('null')) { - words[0] = words[0].replace('null', "I'm here to help with any agriculture-related questions you might have. Feel free to ask!"); + words[0] = words[0].replace('null', localStorage.getItem('locale') == 'en' ? "I'm here to help with any agriculture-related questions you might have. Feel free to ask!" : "ଆପଣଙ୍କ ପାଖରେ ଥିବା କୃଷି ସମ୍ବନ୍ଧୀୟ ପ୍ରଶ୍ନଗୁଡ଼ିକରେ ସାହାଯ୍ୟ କରିବାକୁ ମୁଁ ଏଠାରେ ଅଛି | ପଚାରିବାକୁ ମୁକ୍ତ ହୁଅନ୍ତୁ!"); } if (words?.[1]?.includes('null')) { - words[1] = words[1].replace('null', "I'm here to help with any agriculture-related questions you might have. Feel free to ask!"); + words[1] = words[1].replace('null', localStorage.getItem('locale') == 'en' ? "I'm here to help with any agriculture-related questions you might have. Feel free to ask!" : "ଆପଣଙ୍କ ପାଖରେ ଥିବା କୃଷି ସମ୍ବନ୍ଧୀୟ ପ୍ରଶ୍ନଗୁଡ଼ିକରେ ସାହାଯ୍ୟ କରିବାକୁ ମୁଁ ଏଠାରେ ଅଛି | ପଚାରିବାକୁ ମୁକ୍ତ ହୁଅନ୍ତୁ!"); } if (words?.[words?.length - 2]?.includes('Thank') && words?.[words?.length - 1]?.includes('you')) {