Labels

Filenest uses some hardcoded text strings that are displayed in the UI. For example alert messages.

Default labels

LabelDefault value
alert.folderNestedContent.titleAre you sure you want to delete this folder?
alert.folderNestedContent.textThis folder is not empty. All nested assets and folders will be permanently deleted.
alert.folderNestedContent.cancelCancel
alert.folderNestedContent.commitDelete folder and all contents
alert.deliveryUrlChange.titleConfirm your changes
alert.deliveryUrlChange.textChanging the name of your file will result in a new delivery URL. All existing URLs to this file will break.
alert.deliveryUrlChange.cancelCancel
alert.deliveryUrlChange.commitRename file
alert.deliveryUrlRequired.titleUpdate URL aswell?
alert.deliveryUrlRequired.textYou are about to change the display name of this file. The URL of this file will not change. Do you want to update the URL aswell? Warning: All existing URLs to this file will break.
alert.deliveryUrlRequired.cancelChange display name only
alert.deliveryUrlRequired.commitChange name and URL

Overriding default labels

You can override the default labels by providing a custom labels prop to the Root component.

import { Filenest } from "@filenest/react" <Filenest.Root labels={{ "alert.folderNestedContent.title": "Your custom label text", }} > /* All of your other Filenest components */ </Filenest.Root>