Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Class 'Locale' not found #4775

Closed
bi2b opened this issue Jun 5, 2021 · 1 comment
Closed

Bug: Class 'Locale' not found #4775

bi2b opened this issue Jun 5, 2021 · 1 comment

Comments

@bi2b
Copy link

bi2b commented Jun 5, 2021

i got this error.

Error
Class 'Locale' not found search →

SYSTEMPATH/I18n/Time.php at line 80

73 * @param string|null $locale
74 *
75 * @throws Exception
76 */
77 public function __construct(string $time = null, $timezone = null, string $locale = null)
78 {
79 // If no locale was provided, grab it from Locale (set by IncomingRequest for web requests)
80 $this->locale = ! empty($locale) ? $locale : Locale::getDefault();
81
82 // If a test instance has been provided, use it instead.
83 if (is_null($time) && static::$testNow instanceof Time)
84 {
85 if (empty($timezone))
86 {
87 $timezone = static::$testNow->getTimezone();

@bi2b bi2b added the bug Verified issues on the current code behavior or pull requests that will fix them label Jun 5, 2021
@paulbalandan
Copy link
Member

Enable the intl extension. Locale is a class from ext-intl.

@paulbalandan paulbalandan removed the bug Verified issues on the current code behavior or pull requests that will fix them label Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants