refactor i18n
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user