Skip to content

Bug: CodeIgniter\I18n -> Class 'Locale' not found #3294

Closed
@devorama

Description

@devorama

Describe the bug
Was looking at this issue
#1807

when I tried to test his samples, I then looked at docs on how to load the class
https://codeigniter4.github.io/CodeIgniter4/libraries/time.html?highlight=settimezone
But instead I got the error
Class 'Locale' not found

Checked the source and there is nothing named Locale file or Text wise for a class

IncomingRequest has this logic in there code, but Time.php uses it directly

                        if (class_exists('\Locale', false))
			{
				\Locale::setDefault($locale);
			} 

A clear and concise description of what the bug is.

CodeIgniter 4 version
4.0.3

Affected module(s)
Time.php , part of CodeIgniter\I18n

Expected behavior, and steps to reproduce if appropriate
Should load the file

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions