Skip to content

Commit d29bff5

Browse files
committed
Update custom text
1 parent 939ea05 commit d29bff5

2 files changed

Lines changed: 76 additions & 78 deletions

File tree

README.md

Lines changed: 74 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -286,80 +286,79 @@ The tenant `customText` configuration allows you to override default text string
286286

287287
```json
288288
{
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.',
310-
labelStatus: 'Status',
311-
labelStatusDescription: 'Required: Commission status.',
312-
labelOwner: 'Owner',
313-
labelOwnerDescription: 'Required: Commission owner.',
314-
labelAmount: 'Amount',
315-
labelAmountDescription: 'Optional: Commission amount.',
316-
labelDate: 'Date',
317-
labelDateDescription: 'Optional: Commission creation date.',
318-
labelAssignedTo: 'Assigned To',
319-
labelAssignedToDescription: 'Optional: The developer to assign this commission to.',
320-
labelCurrency: 'Currency',
321-
labelCurrencyDescription: 'Optional: Commission currency.',
322-
labelLocked: 'Locked',
323-
labelLockedDescription: 'Optional: Whether or not the commission is locked from user editing.',
324-
labelTasks: 'Tasks',
325-
labelSendEmail: 'Send Email',
326-
labelSendEmailDescription: 'Optional: Send an email to the user regarding this update.',
327-
labelRequired: 'Required',
328-
labelOptional: 'Optional',
329-
youLabel: '(you)',
330-
noneLabel: 'None',
331-
backLabel: 'Back',
332-
backLabelWithArrow: '← Back',
333-
nextLabel: 'Next',
334-
startLabel: 'Start',
335-
createLabel: 'Create',
336-
returnLabel: 'Return',
337-
restartLabel: 'Restart',
338-
saveLabel: 'Save',
339-
syncLabel: 'Sync',
340-
backToLabel: 'Back to ',
341-
changesSaved: 'Changes saved',
342-
changesRestored: 'Changes restored',
343-
clearChanges: 'Clear changes',
344-
brandName: 'CommTrackr',
345-
createEstimatedTime: 'Estimated time to complete: 2 minutes',
346-
commissionNotFound: 'The requested commission was not found.',
347-
commissionLocked: 'This commission is locked from user editing.',
348-
forbiddenMessage: 'You do not have permission to edit this commission.',
349-
resourceNotFound: 'The requested resource was not found.',
350-
offTitle: 'CommTrackr Disabled',
351-
offDescription: 'Enable CommTrackr for your app using <code>commtrackr.on();</code>',
352-
tenantMisconfiguredTitle: 'Tenant Misconfigured',
353-
tenantMisconfiguredDescription: 'Configure your CommTrackr tenant using <code>commtrackr.init({ tenant: { ... } });</code>',
354-
serviceOffline: 'Service is currently offline.',
355-
noSession: 'No session found. Please enable cookies and try again.',
356-
userNotAuthenticated: 'User not authenticated. Please log in and try again.',
357-
serviceNotConfigured: 'Service is not properly configured. Please contact the administrator.',
358-
noFieldsConfigured: 'No fields configured for commission creation. Please contact the administrator.',
359-
createSuccess: 'Your commission was created successfully.',
360-
syncSuccess: 'Your commissions were synchronized successfully.',
361-
updateSuccess: 'Your commission was updated successfully.',
362-
commissionNotFoundJson: 'The requested commission was not found.',
363-
forbiddenMessage: 'You do not have permission to edit this commission.'
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+
"forbiddenMessage": "You do not have permission to edit this commission.",
309+
"errorTitle": "Error",
310+
"errorMessage": "An unexpected error occurred. Please try again later.",
311+
"labelStatus": "Status",
312+
"labelStatusDescription": "Required: Commission status.",
313+
"labelOwner": "Owner",
314+
"labelOwnerDescription": "Required: Commission owner.",
315+
"labelAmount": "Amount",
316+
"labelAmountDescription": "Optional: Commission amount.",
317+
"labelDate": "Date",
318+
"labelDateDescription": "Optional: Commission creation date.",
319+
"labelAssignedTo": "Assigned To",
320+
"labelAssignedToDescription": "Optional: The developer to assign this commission to.",
321+
"labelCurrency": "Currency",
322+
"labelCurrencyDescription": "Optional: Commission currency.",
323+
"labelLocked": "Locked",
324+
"labelLockedDescription": "Optional: Whether or not the commission is locked from user editing.",
325+
"labelTasks": "Tasks",
326+
"labelSendEmail": "Send Email",
327+
"labelSendEmailDescription": "Optional: Send an email to the user regarding this update.",
328+
"labelRequired": "Required",
329+
"labelOptional": "Optional",
330+
"youLabel": "(you)",
331+
"noneLabel": "None",
332+
"backLabel": "Back",
333+
"backLabelWithArrow": "← Back",
334+
"nextLabel": "Next",
335+
"startLabel": "Start",
336+
"createLabel": "Create",
337+
"returnLabel": "Return",
338+
"restartLabel": "Restart",
339+
"saveLabel": "Save",
340+
"syncLabel": "Sync",
341+
"backToLabel": "Back to ",
342+
"changesSaved": "Changes saved",
343+
"changesRestored": "Changes restored",
344+
"clearChanges": "Clear changes",
345+
"brandName": "CommTrackr",
346+
"createEstimatedTime": "Estimated time to complete: 2 minutes",
347+
"commissionNotFound": "The requested commission was not found.",
348+
"commissionLocked": "This commission is locked from user editing.",
349+
"resourceNotFound": "The requested resource was not found.",
350+
"offTitle": "CommTrackr Disabled",
351+
"offDescription": "Enable CommTrackr for your app using <code>commtrackr.on();</code>",
352+
"tenantMisconfiguredTitle": "Tenant Misconfigured",
353+
"tenantMisconfiguredDescription": "Configure your CommTrackr tenant using <code>commtrackr.init({ tenant: { ... } });</code>",
354+
"serviceOffline": "Service is currently offline.",
355+
"noSession": "No session found. Please enable cookies and try again.",
356+
"userNotAuthenticated": "User not authenticated. Please log in and try again.",
357+
"serviceNotConfigured": "Service is not properly configured. Please contact the administrator.",
358+
"noFieldsConfigured": "No fields configured for commission creation. Please contact the administrator.",
359+
"createSuccess": "Your commission was created successfully.",
360+
"syncSuccess": "Your commissions were synchronized successfully.",
361+
"updateSuccess": "Your commission was updated successfully.",
362+
"commissionNotFoundJson": "The requested commission was not found."
364363
}
365364
```

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const customText = {
4949
newTaskLabel: 'New Task',
5050
notFoundTitle: 'Not Found',
5151
forbiddenTitle: 'Forbidden',
52+
forbiddenMessage: 'You do not have permission to edit this commission.',
5253
errorTitle: 'Error',
5354
errorMessage: 'An unexpected error occurred. Please try again later.',
5455
labelStatus: 'Status',
@@ -89,7 +90,6 @@ const customText = {
8990
createEstimatedTime: 'Estimated time to complete: 2 minutes',
9091
commissionNotFound: 'The requested commission was not found.',
9192
commissionLocked: 'This commission is locked from user editing.',
92-
forbiddenMessage: 'You do not have permission to edit this commission.',
9393
resourceNotFound: 'The requested resource was not found.',
9494
offTitle: 'CommTrackr Disabled',
9595
offDescription: 'Enable CommTrackr for your app using <code>commtrackr.on();</code>',
@@ -103,8 +103,7 @@ const customText = {
103103
createSuccess: 'Your commission was created successfully.',
104104
syncSuccess: 'Your commissions were synchronized successfully.',
105105
updateSuccess: 'Your commission was updated successfully.',
106-
commissionNotFoundJson: 'The requested commission was not found.',
107-
forbiddenMessage: 'You do not have permission to edit this commission.'
106+
commissionNotFoundJson: 'The requested commission was not found.'
108107
};
109108

110109

0 commit comments

Comments
 (0)