UNPKG

@freshworks/crayons

Version:
189 lines (187 loc) 7.55 kB
var datepicker = { cancel: "Cancel", update: "Update", to: "to" }; var dropdown = { add: "Add", cancel: "Cancel" }; var fileUploader = { text: "Upload file", description: "or drag and drop here", acceptError: "Upload CSV files only.", maxFileSizeError: "File size exceeded.", maxFilesLimitError: "File limit exceeded.", fileUploadError: "File upload failed", uploading: "Uploading", selectedFiles: "Selected files", remove: "Remove" }; var modal = { cancel: "Cancel", ok: "OK" }; var search = { search: "Search", noItemsFound: "No items found", noDataAvailable: "No data available", startTyping: "Start typing..." }; var form = { required: "{{field}} is required", invalidUrl: "Enter a valid URL", invalidEmail: "Enter a valid email", invalidNumber: "Enter a valid number" }; var pagination = { buttonGroupLabel: "Pagination controls", previousButtonLabel: "Previous", nextButtonLabel: "Next", content: "<span class='record'>{{start}}</span> to <span class='record'>{{end}}</span> of {{total}}" }; var datatable = { chooseColumns: "Choose columns", actions: "Actions", hide: "Hide", show: "Show", showMore: "Show more", showLess: "Show less" }; var platformTable = { "delete": "Delete", sortby: "Sort by", orderby: "Order by" }; var formBuilder = { fieldRequired: "Required when submitting the form", fieldRequiredTag: "Required", fieldUnique: "Accept unique value for every record", fieldUniqueHoverText: "No two records can have the same value for this field. You will not be able to change this setting later.", fieldUniqueTag: "Unique", fieldFilter: "Use this field to filter records", fieldFilterHoverText: "Filter your list of records using this field. You will not be able to change this setting later.", fieldFilterTag: "Filterable", fieldTypeRelationship: "Lookup relationship", fieldTypeRelationshipDesc: "Create associations between two objects.", fieldTypeRelationshipDescLinkLabel: "Learn more", fieldTypeText: "Text", fieldTypeParagraph: "Paragraph", fieldTypeNumber: "Number", fieldTypeDecimal: "Decimal", fieldTypeDate: "Date", fieldTypeDropdown: "Dropdown", fieldTypeCheckbox: "Checkbox", fieldTypeMultiselect: "Multi select", lookupUniqueTag: "Unique", primaryFieldTag: "Primary field", primaryFieldHeader: "Primary field", primaryFieldNameHint: "This is the object's primary field that uniquely represents each record and cannot be deleted.", deleteFieldTitle: "Are you sure you want to delete the field, {{label}} ?", deleteFieldMessage: "This field will be deleted permanently and all associated data will be lost. Do you still want to continue?", deleteFieldSubmit: "Delete", searchFields: "Search by field label", customizeWidget: "Customize widget", addChoices: "Add choices", addChoice: "Add choice", choicePlaceholderSuffix: "Choice", headerFieldTypes: "Field types", headerFields: "Fields", fieldTypesDragDrop: "Drag and drop from here", behaviour: "Behavior for agents", fieldLabel: "Label for agents", fieldLabelPlaceholder: "Enter the field label", addFieldBtn: "Add field", saveFieldBtn: "Save", cancelFieldBtn: "Cancel", lookupAssociationHeader: "Association", lookupSourceObject: "Source object", lookupRelationshipPlaceholder: "Select relationship", lookupRelationshipLabel: "Relationship type", lookupTargetPlaceholder: "Select target object", lookupTargetLabel: "Target object", relationshipManyToOne: "Many to one", relationshipManyToOneDesc: "Link many records of the source object with one record of the target object. e.g Many Orders can be placed by a Contact.", relationshipOneToOne: "One to one", relationshipOneToOneDesc: "Link one record of the source object with only one record of the target object. e.g A Person can have only one Passport.", relationshipManyToOneCO: "Many records of <span class='fb-field-lookup-relationship-object-name'>{{source}}</span> can be associated with one record of <span class='fb-field-lookup-relationship-object-name'>{{target}}</span>.", relationshipOneToOneCO: "One record of <span class='fb-field-lookup-relationship-object-name'>{{source}}</span> can be associated with one record of <span class='fb-field-lookup-relationship-object-name'>{{target}}</span>.", relationshipManyToOneNative: "Many records of <span class='fb-field-lookup-relationship-object-name'>{{source}}</span> can be associated with one <span class='fb-field-lookup-relationship-object-name'>{{target}}</span>.", relationshipOneToOneNative: "One record of <span class='fb-field-lookup-relationship-object-name'>{{source}}</span> can be associated with one <span class='fb-field-lookup-relationship-object-name'>{{target}}</span>.", customizeWidgetModalHeader: "Customize widget", customizeWidgetModalHint: "Select upto 5 fields to display on the widget.", customizeWidgetModalSaveBtn: "Save", customizeWidgetModalCancelBtn: "Cancel", noSearchItemsFound: "No matching fields found", errors: { emptyFieldName: "Field label is required.", emptyRelationshipType: "Relationship type is required.", emptyTargetObject: "Target object is required.", emptyChoice: "Choice text is required.", duplicate: "Dropdown choice already exists", minimum: "Enter a minimum of one choice", formErrors: "Please fix the errors and continue", fieldNameExists: "There is another field with the same name in this form. Please use a different name.", deleteDropDownChoice: "Deleting a choice will impact all related records" }, maximumLimits: { filterable: "At most {{count}} fields (excluding lookups) can be selected to filter records in the list view.", unique: "At most {{count}} fields can be marked as unique.", fields: "Reached the maximum limit of {{count}} fields. Delete an existing field to create a new one.", lookups: "Reached the maximum limit of {{count}} lookup fields. Delete an existing lookup field to create a new one." } }; var platformCouiWidgets = { viewAllWidgetRecords: "View all records", noRecordsLinked: "No records linked", linkWidgetButton: "Link a new record", linkModalHeader: "Link a new record", linkModalSelectSearchHeader: "Search by {{fieldName}}", linkModalSelectSearchPlaceholder: "Search...", linkModalSelectEmptySearch: "Start typing...", linkModalSelectNoResultFound: "No records found", linkModalSubmitButton: "Save", linkModalCancelButton: "Cancel", linkModalSuccess: "Record updated successfully", linkModalError: "Unable to update the record", checkBoxYesValue: "Yes", checkBoxNoValue: "No", widgetSectionHeader: "{{fieldLabel}} is {{contextLabel}}", linkModalLoadingText: "Fetching details...", relatedWidgetAccordionHeader: "Related {{schema}}" }; var filters = { addFilter: "+ Add another condition", noFilter: "You have not added any filters yet", validation: { required: "Value is required", minMax: "Must be greater than {{fromValue}}" }, placeholder: { startRange: "Start range", endRange: "End range", and: "and" } }; var searchDropdown = { placeholder: { search: "Type to search" } }; var enUS = { datepicker: datepicker, dropdown: dropdown, fileUploader: fileUploader, modal: modal, search: search, form: form, pagination: pagination, datatable: datatable, platformTable: platformTable, formBuilder: formBuilder, platformCouiWidgets: platformCouiWidgets, filters: filters, searchDropdown: searchDropdown }; export default enUS; export { datatable, datepicker, dropdown, fileUploader, filters, form, formBuilder, modal, pagination, platformCouiWidgets, platformTable, search, searchDropdown };