5
Localize content
Pass localized content to the plugin
You can customize the content of the plugin using below

Option 1 - Passing content to set method

1
SocialInviter.set({
2
style: {
3
'font-family': 'Arial'
4
},
5
localizeContent: {
6
selectService: 'Pick a service',
7
messageSendSuccess: 'Invitation sent to {0} people.'
8
}
9
});
Copied!

Option 2 - Passing contet to setLocaleContent method

1
SocialInviter.setLocaleContent({
2
selectService: 'Pick a service',
3
messageSendSuccess: 'Invitation sent to {0} people.'
4
});
Copied!

Available content references

1
{
2
selectService: "Select a service",
3
loadingText: "Loading...",
4
validatingInstallation: "Validating installation...",
5
genericCSVText: "Generic CSV",
6
genericVCARDText: "VCARD",
7
notificationText: "{0} contact(s) found!",
8
clearSearchResults: 'Clear search results for "{0}"?',
9
contactSelectionErrorText: "Please select atleast 1 contact.",
10
inviteMoreService: "Invite more? {0} or Want to choose another service? {1}",
11
clickHereText: "Click here",
12
noresultfoundText: "No result found!",
13
noContactsfoundText: "No contacts found!",
14
noContactsSelectedText: "No contacts selected!",
15
loadingFriendstext: "Loading friends...",
16
fetchingFriendsText: "Fetching friends...",
17
uploadFileText: "Click to upload {0} file",
18
preparingParseText: "Preparing {0} parsing...",
19
authenticatingText: "Authenticating please wait...",
20
popupblock: "Please make sure you browser doesn't block the authentication popup window.",
21
connectingText: "Connecting...",
22
verifyingText: "Verifying credentials...",
23
serviceDescriptionText: "Select one of the below service to begin importing contacts. {0} We will not store your password or login information.",
24
importContentText: "We found {0} contacts from your address book. Select the contact you'd like to connect to.",
25
importContentNoContactsText: "We found {0} contacts from your address book. Please try again.",
26
importUpdateText: "You have selected {0} out of {1} contacts, please click here to",
27
viewSelectedText: "view selected contacts.",
28
viewAllContactsText: "view all contacts.",
29
privacy: "Privacy: We do not store your email address or password information. Your information will be submitted securely to fetch your address book.",
30
searchResultText: "Found {0} contacts for the search",
31
viewAllText: "select more contacts.",
32
popupNoteText: "Note: Please make sure the popup is not blocked by browser.",
33
mailSubjectText: "Lets spread the word!",
34
mailDescriptionText: "Enter your predefined message here...",
35
toAddrErrText: "Enter to address",
36
loginError: "Invalid login or password.",
37
emailLabel: "Email",
38
passwordLabel: "Password",
39
signinTitle: "Sign in to your account",
40
signinText: "Sign in",
41
uploadErrText: "Please select a valid {0} file and ",
42
subjectErrText: "Enter subject",
43
messageErrText: "Enter message",
44
messageSendingText: "Message sending...",
45
invalidRequestErrText: "Invalid request: something went wrong.",
46
messageSendError: "Error sending message",
47
messageSendSuccess: "{0} invited.",
48
invalidRequest: "Invalid request",
49
recipientsLabelText: "Recipients",
50
subjectLabelText: "Subject",
51
messageLabelText: "Message",
52
backBtnText: "BACK",
53
backBtnToListText: "Back to contacts",
54
sendBtnText: "SEND",
55
proceedBtnText: "PROCEED",
56
cancelBtnText: "CANCEL",
57
exitBtnText: "EXIT",
58
doneBtnText: "CLOSE",
59
searchBtnText: "SEARCH CONTACTS",
60
exportBtnText: "EXPORT CONTACTS",
61
refreshBtnText: "REFRESH",
62
accountBtnText: "SWITCH ACCOUNT",
63
allServicesText: "All services",
64
importContactsText: "Import your contacts",
65
importFriendsText: "Invite your friends",
66
invitationSuccessText: "Invitation sent successfully!",
67
description: "We found {0} people from your {1} address book.",
68
notconfigured: "{0} not configured",
69
}
Copied!