mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
Chore: Include Tamil, Arabic, other language updates (#1018)
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
@@ -9,10 +9,10 @@
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"IS_AVAILABLE": "متاح",
|
||||
"ARE_AVAILABLE": "متاح",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
"AND": "و"
|
||||
},
|
||||
"POWERED_BY": "مدعوم بواسطة Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "الرجاء إدخال بريدك الإلكتروني",
|
||||
|
||||
@@ -2,19 +2,19 @@
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Descarrega",
|
||||
"UPLOADING": "S'està pujant..."
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "sotmetre's"
|
||||
"SUBMIT": "Envia"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "està disponible",
|
||||
"ARE_AVAILABLE": "estan disponibles",
|
||||
"OTHERS_ARE_AVAILABLE": "altres estan disponibles",
|
||||
"AND": "i"
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Desenvolupat per Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Introduïu el vostre correu electrònic",
|
||||
"CHAT_PLACEHOLDER": "Escriu el teu missatge"
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Introduïu el correu electrònic",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
|
||||
20
app/javascript/widget/i18n/locale/cs.json
Normal file
20
app/javascript/widget/i18n/locale/cs.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Stáhnout",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Odeslat"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Prosím, zadejte svůj e-mail",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
20
app/javascript/widget/i18n/locale/da.json
Normal file
20
app/javascript/widget/i18n/locale/da.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Download",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Submit"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Please enter your email",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
@@ -2,19 +2,19 @@
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Herunterladen",
|
||||
"UPLOADING": "Hochladen..."
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Submit"
|
||||
"SUBMIT": "Einreichen"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "ist verfügbar",
|
||||
"ARE_AVAILABLE": "sind verfügbar",
|
||||
"OTHERS_ARE_AVAILABLE": "andere sind verfügbar",
|
||||
"AND": "und"
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Unterstützt von Chatwoot",
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Bitte geben Sie ihre E-Mail-Adresse ein",
|
||||
"CHAT_PLACEHOLDER": "Geben Sie Ihre Nachricht ein"
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
|
||||
20
app/javascript/widget/i18n/locale/fi.json
Normal file
20
app/javascript/widget/i18n/locale/fi.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Download",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Submit"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Please enter your email",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
20
app/javascript/widget/i18n/locale/hi.json
Normal file
20
app/javascript/widget/i18n/locale/hi.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Download",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Submit"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Please enter your email",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
20
app/javascript/widget/i18n/locale/hu.json
Normal file
20
app/javascript/widget/i18n/locale/hu.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Download",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Submit"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Please enter your email",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
20
app/javascript/widget/i18n/locale/it.json
Normal file
20
app/javascript/widget/i18n/locale/it.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Scaricare",
|
||||
"UPLOADING": "Caricamento..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Invia"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "è disponibile",
|
||||
"ARE_AVAILABLE": "sono disponibili",
|
||||
"OTHERS_ARE_AVAILABLE": "altri sono disponibili",
|
||||
"AND": "e"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Inserisci la tua email",
|
||||
"CHAT_PLACEHOLDER": "Scrivi il tuo messaggio"
|
||||
}
|
||||
20
app/javascript/widget/i18n/locale/ja.json
Normal file
20
app/javascript/widget/i18n/locale/ja.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Download",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Submit"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Please enter your email",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
20
app/javascript/widget/i18n/locale/ko.json
Normal file
20
app/javascript/widget/i18n/locale/ko.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Download",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Submit"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Please enter your email",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
@@ -1,14 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "ഡൗൺലോഡ്",
|
||||
"UPLOADING": "അപ്ലോഡുചെയ്യുന്നു..."
|
||||
"DOWNLOAD": "ഡൗൺലോഡ്",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "സമർപ്പിക്കുക"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "നിങ്ങളുടെ ഇമെയിൽ നൽകുക",
|
||||
"CHAT_PLACEHOLDER": "നിങ്ങളുടെ സന്ദേശം ടൈപ്പുചെയ്യുക"
|
||||
"EMAIL_PLACEHOLDER": "ദയവായി നിങ്ങളുടെ ഇമെയിൽ നൽകുക",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is beschikbaar",
|
||||
"ARE_AVAILABLE": "zijn beschikbaar",
|
||||
"OTHERS_ARE_AVAILABLE": "anderen zijn beschikbaar",
|
||||
"AND": "en"
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Mogelijk gemaakt door Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Voer uw e-mailadres in",
|
||||
|
||||
20
app/javascript/widget/i18n/locale/pl.json
Normal file
20
app/javascript/widget/i18n/locale/pl.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Pobierz",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Prześlij"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Wprowadź swój adres e-mail",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
@@ -1,14 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Baixar",
|
||||
"UPLOADING": "Enviando..."
|
||||
"DOWNLOAD": "BAIXAR",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Enviar"
|
||||
"SUBMIT": "submeter"
|
||||
}
|
||||
},
|
||||
"POWERED_BY": "Desenvolvido por Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Por favor introduza o seu e-mail",
|
||||
"CHAT_PLACEHOLDER": "Digite sua mensagem"
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Por favor, digite seu e-mail",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
|
||||
20
app/javascript/widget/i18n/locale/ru.json
Normal file
20
app/javascript/widget/i18n/locale/ru.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Download",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Submit"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Пожалуйста, введите ваш email",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
20
app/javascript/widget/i18n/locale/sk.json
Normal file
20
app/javascript/widget/i18n/locale/sk.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Download",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Submit"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Please enter your email",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
20
app/javascript/widget/i18n/locale/sv.json
Normal file
20
app/javascript/widget/i18n/locale/sv.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Hämta",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Skicka"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Ange din e-postadress",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
20
app/javascript/widget/i18n/locale/ta.json
Normal file
20
app/javascript/widget/i18n/locale/ta.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "பதிவிறக்கவும்",
|
||||
"UPLOADING": "பதிவேறுகிறது..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "சமர்பிக்கவும்"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "இருக்கிறார்",
|
||||
"ARE_AVAILABLE": "இருக்கிறார்கள்",
|
||||
"OTHERS_ARE_AVAILABLE": "மற்றவர்களும் இருக்கிறார்கள்",
|
||||
"AND": "மற்றும்"
|
||||
},
|
||||
"POWERED_BY": "சாட்வுட் மூலம் இயக்கபடுகிறது",
|
||||
"EMAIL_PLACEHOLDER": "உங்கள் ஈ-மெயில் முகவரியை பதிவிடவும்",
|
||||
"CHAT_PLACEHOLDER": "உங்கள் செய்தியை உள்ளிடவும்"
|
||||
}
|
||||
20
app/javascript/widget/i18n/locale/tr.json
Normal file
20
app/javascript/widget/i18n/locale/tr.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Download",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Submit"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Please enter your email",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
20
app/javascript/widget/i18n/locale/uk.json
Normal file
20
app/javascript/widget/i18n/locale/uk.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Звантажити",
|
||||
"UPLOADING": "Завантажується..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Додати"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Введіть адресу електронної пошти",
|
||||
"CHAT_PLACEHOLDER": "Введіть Ваше повідомлення"
|
||||
}
|
||||
20
app/javascript/widget/i18n/locale/vi.json
Normal file
20
app/javascript/widget/i18n/locale/vi.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Download",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Submit"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Please enter your email",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
20
app/javascript/widget/i18n/locale/zh.json
Normal file
20
app/javascript/widget/i18n/locale/zh.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"COMPONENTS": {
|
||||
"FILE_BUBBLE": {
|
||||
"DOWNLOAD": "Download",
|
||||
"UPLOADING": "Uploading..."
|
||||
},
|
||||
"FORM_BUBBLE": {
|
||||
"SUBMIT": "Submit"
|
||||
}
|
||||
},
|
||||
"AGENT_AVAILABILITY": {
|
||||
"IS_AVAILABLE": "is available",
|
||||
"ARE_AVAILABLE": "are available",
|
||||
"OTHERS_ARE_AVAILABLE": "others are available",
|
||||
"AND": "and"
|
||||
},
|
||||
"POWERED_BY": "Powered by Chatwoot",
|
||||
"EMAIL_PLACEHOLDER": "Please enter your email",
|
||||
"CHAT_PLACEHOLDER": "Type your message"
|
||||
}
|
||||
@@ -108,7 +108,6 @@ export const getters = {
|
||||
getIsFetchingList: _state => _state.uiFlags.isFetchingList,
|
||||
getUnreadMessageCount: _state => {
|
||||
const { userLastSeenAt } = _state.meta;
|
||||
console.log(userLastSeenAt);
|
||||
const count = Object.values(_state.conversations).filter(chat => {
|
||||
const { created_at: createdAt, message_type: messageType } = chat;
|
||||
const isOutGoing = messageType === MESSAGE_TYPE.OUTGOING;
|
||||
@@ -122,7 +121,6 @@ export const getters = {
|
||||
getUnreadTextMessages: (_state, _getters) => {
|
||||
const unreadCount = _getters.getUnreadMessageCount;
|
||||
const allMessages = [...Object.values(_state.conversations)];
|
||||
console.log(unreadCount);
|
||||
const unreadAgentMessages = allMessages.filter(message => {
|
||||
const { message_type: messageType } = message;
|
||||
return messageType === MESSAGE_TYPE.OUTGOING;
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
import { playNotificationAudio } from 'shared/helpers/AudioNotificationHelper';
|
||||
import { actions } from '../../conversation';
|
||||
import getUuid from '../../../../helpers/uuid';
|
||||
import { API } from 'widget/helpers/axios';
|
||||
|
||||
jest.mock('../../../../helpers/uuid');
|
||||
jest.mock('shared/helpers/AudioNotificationHelper', () => ({
|
||||
playNotificationAudio: jest.fn(),
|
||||
}));
|
||||
jest.mock('widget/helpers/axios');
|
||||
|
||||
const commit = jest.fn();
|
||||
|
||||
@@ -88,10 +90,21 @@ describe('#actions', () => {
|
||||
});
|
||||
|
||||
describe('#setUserLastSeen', () => {
|
||||
it('sends correct mutations', () => {
|
||||
const lastSeen = Math.abs(Date.now() / 1000);
|
||||
actions.setUserLastSeen({ commit }, { lastSeen });
|
||||
expect(commit).toBeCalledWith('setMetaUserLastSeenAt', lastSeen);
|
||||
it('sends correct mutations', async () => {
|
||||
API.post.mockResolvedValue({ data: { success: true } });
|
||||
await actions.setUserLastSeen({
|
||||
commit,
|
||||
getters: { getConversationSize: 2 },
|
||||
});
|
||||
expect(commit.mock.calls[0][0]).toEqual('setMetaUserLastSeenAt');
|
||||
});
|
||||
it('sends correct mutations', async () => {
|
||||
API.post.mockResolvedValue({ data: { success: true } });
|
||||
await actions.setUserLastSeen({
|
||||
commit,
|
||||
getters: { getConversationSize: 0 },
|
||||
});
|
||||
expect(commit.mock.calls).toEqual([]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user