refactor i18n

This commit is contained in:
Matteo Manzinello
2020-07-01 14:38:54 +02:00
parent f48e5a45d0
commit 74943f2c53
10 changed files with 1011 additions and 22 deletions

View File

@@ -1,39 +0,0 @@
{
"languages": ["en", "it"],
"translations": {
"en": {
"open_in": "open in ",
"cc_": "cc ",
"bcc_": "bcc ",
"subject_": "subject ",
"body_": "body ",
"gmail": "Gmail",
"outlook": "Outlook",
"telegram": "Telegram",
"whatsapp": "WhatsApp",
"skype": "Skype",
"call": "call",
"open": "open",
"_default": " default",
"_as_default": " as default",
"copy": "copy"
},
"it": {
"open_in": "apri con ",
"cc": "cc ",
"bcc": "ccn ",
"subject": "oggetto ",
"body": "testo ",
"gmail": "Gmail",
"outlook": "Outlook",
"telegram": "Telegram",
"whatsapp": "WhatsApp",
"skype": "Skype",
"call": "chiama",
"open": "apri",
"_default": " ",
"_as_default": " ",
"copy": "copia"
}
}
}

View File

@@ -1,7 +1,7 @@
import { MailgoConfig } from "../mailgo";
// i18n for mailgo
const i18n = require("./i18n/i18n.json");
const i18n = require("../i18n/i18n.json");
// mailgo css
const mailgoCSS = require("./mailgo.scss").toString();
@@ -578,7 +578,7 @@ const openWhatsApp = (): void => {
hideMailgo();
};
const callDefault = (): void => {
const callDefault = (event?: any): void => {
let callUrl = "tel:" + tel;
window.open(callUrl);
hideMailgo();