reset_language()
public function reset_language(): void
Description
Resets the validation language to the system default. Removes any sticky language preference from the session and cookie.
After calling this method, validation error messages will be displayed in the default language (either the APP_LANG constant or English).
Parameters
This method accepts no parameters.
Return Value
| Type | Description |
|---|---|
| void | This method does not return a value. |
Example Usage
Notes
- Calls
$this->language->reset_language()to clear session and cookie. - Does not affect the
APP_LANGconstant – that remains as a fallback. - Typically used when you want to clear a user's language preference and revert to system defaults.