You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+85-64Lines changed: 85 additions & 64 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,70 +60,7 @@ commtrackr.init({ // Initialize CommTracker with configurations
60
60
},
61
61
stylesheets: [], // Additional stylesheets to include
62
62
scripts: [], // Additional scripts to include
63
-
customText: { // Custom text overrides for the tenant
64
-
userWelcomeBefore:'Welcome, ',
65
-
userWelcomeAfter:'!',
66
-
activationTitle:'Activation',
67
-
sessionTitle:'Session',
68
-
tenantTitle:'Configuration',
69
-
authTitle:'Authenticate',
70
-
adminTitle:'Admin View',
71
-
adminDescription:'Manage commissions created on your platform.',
72
-
devTitle:'Developer View',
73
-
devDescription:'Manage commissions assigned to you.',
74
-
userTitle:'Commissions',
75
-
userDescription:'View and manage your past commissions.',
76
-
newCommissionTitle:'New Commission',
77
-
newTaskLabel:'New Task',
78
-
notFoundTitle:'Not Found',
79
-
forbiddenTitle:'Forbidden',
80
-
errorTitle:'Error',
81
-
labelStatus:'Status',
82
-
labelOwner:'Owner',
83
-
labelAmount:'Amount',
84
-
labelDate:'Date',
85
-
labelAssignedTo:'Assigned To',
86
-
labelCurrency:'Currency',
87
-
labelLocked:'Locked',
88
-
labelTasks:'Tasks',
89
-
labelSendEmail:'Send Email',
90
-
labelRequired:'Required',
91
-
labelOptional:'Optional',
92
-
youLabel:'(you)',
93
-
noneLabel:'None',
94
-
backLabel:'Back',
95
-
nextLabel:'Next',
96
-
startLabel:'Start',
97
-
createLabel:'Create',
98
-
returnLabel:'Return',
99
-
restartLabel:'Restart',
100
-
saveLabel:'Save',
101
-
syncLabel:'Sync',
102
-
backToLabel:'Back to ',
103
-
changesSaved:'Changes saved',
104
-
changesRestored:'Changes restored',
105
-
clearChanges:'Clear changes',
106
-
brandName:'CommTrackr',
107
-
createEstimatedTime:'Estimated time to complete: 2 minutes',
108
-
commissionNotFound:'The requested commission was not found.',
109
-
commissionLocked:'This commission is locked from user editing.',
110
-
forbiddenMessage:'You do not have permission to edit this commission.',
111
-
resourceNotFound:'The requested resource was not found.',
112
-
offTitle:'CommTrackr Disabled',
113
-
offDescription:'Enable CommTrackr for your app using <code>commtrackr.on();</code>',
114
-
tenantMisconfiguredTitle:'Tenant Misconfigured',
115
-
tenantMisconfiguredDescription:'Configure your CommTrackr tenant using <code>commtrackr.init({ tenant: { ... } });</code>',
116
-
serviceOffline:'Service is currently offline.',
117
-
noSession:'No session found. Please enable cookies and try again.',
118
-
userNotAuthenticated:'User not authenticated. Please log in and try again.',
119
-
serviceNotConfigured:'Service is not properly configured. Please contact the administrator.',
120
-
noFieldsConfigured:'No fields configured for commission creation. Please contact the administrator.',
121
-
createSuccess:'Your commission was created successfully.',
122
-
syncSuccess:'Your commissions were synchronized successfully.',
123
-
updateSuccess:'Your commission was updated successfully.',
124
-
commissionNotFoundJson:'The requested commission was not found.',
125
-
forbiddenJson:'You do not have permission to edit this commission.'
126
-
},
63
+
customText: {} // Custom text overrides for the tenant; see "Custom Text" section below
127
64
},
128
65
vars: {
129
66
userId:'username', // req.session object variable for unique user identification
@@ -342,3 +279,87 @@ Default:
342
279
Type: `Array`
343
280
344
281
Default: `'users'`
282
+
283
+
## Custom Text
284
+
285
+
The tenant `customText` configuration allows you to override default text strings used throughout the CommTrackr interface. This is useful for localization or customizing the user experience. The available text strings are as follows:
286
+
287
+
```json
288
+
{
289
+
userWelcomeBefore: 'Welcome, ',
290
+
userWelcomeAfter: '!',
291
+
activationTitle: 'Activation',
292
+
sessionTitle: 'Session',
293
+
tenantTitle: 'Configuration',
294
+
authTitle: 'Authentication Required',
295
+
authDescriptionBefore: 'You\'ll need to log into your ',
296
+
authDescriptionAfter: ' account before managing your commissions.',
297
+
authContinueLabel: 'Continue',
298
+
adminTitle: 'Commission Management',
299
+
adminDescription: 'Manage commissions created on your platform.',
300
+
devTitle: 'Commission Management',
301
+
devDescription: 'Manage commissions assigned to you.',
302
+
userTitle: 'Commissions',
303
+
userDescription: 'View and manage your past commissions.',
304
+
newCommissionTitle: 'New Commission',
305
+
newTaskLabel: 'New Task',
306
+
notFoundTitle: 'Not Found',
307
+
forbiddenTitle: 'Forbidden',
308
+
errorTitle: 'Error',
309
+
errorMessage: 'An unexpected error occurred. Please try again later.',
<aclass="button"href="<%= tenant.domain %>"><%=(tenant.customText&&tenant.customText.backToLabel?tenant.customText.backToLabel:'Back to ')+tenant.name%></a>
0 commit comments