detectLocale

function
function detectLocale(): string;

Detects the current locale from the system.
Uses Intl.DateTimeFormat to determine the user's locale.

Returns

string