Table of Contents

TLocaleMiddleware.OnGetDefaultLocale Property

Callback invoked to dynamically determine the default locale.

Remarks

This callback is invoked when no matching locale is found from the Accept-Language header. The callback receives the current DefaultLocale value and can modify it based on runtime conditions.

Syntax

Unit: Sparkle.Middleware.Locale

property TLocaleMiddleware.OnGetDefaultLocale: TGetDefaultLocaleProc

See also