BaseTitleCaseOptions
import { BaseTitleCaseOptions } from "jsr:@ende/text/unstable-to-sentence-case";interface ยท experimental
interface BaseTitleCaseOptionsBase options for title-case functions
Properties
locale
locale?: boolean | NonNullable<Intl.LocalesArgument>Uses localized case formatting. If it is set to true, uses default
locale on the system. If it's set to a specific locale, uses that locale.
Default: false
trailingCase
trailingCase?: TrailingCaseThe case to use for the remaining characters in the string:
"lower"lowercases them, even if previously capitalized."unchanged"preserves the original casing.
Default: "lower"