davis icon indicating copy to clipboard operation
davis copied to clipboard

Add "symfony/polyfill-intl-messageformatter" to Composer Dependencies

Open IGLOU-EU opened this issue 1 year ago • 1 comments

Hello team,

I encountered an issue during a fresh installation where the following error message was displayed:

An exception has been thrown during the rendering of a template ("Cannot parse message translation: please install the "intl" PHP extension or the "symfony/polyfill-intl-messageformatter" package.").

Environment:

  • Davis 5.x
  • PHP Version: 8.3
  • Hosting: Shared hosting (intl extension not available)

Proposed Solution: To resolve this, I suggest adding "symfony/polyfill-intl-messageformatter" to the Composer dependencies. This will provide a fallback for systems where the intl PHP extension is unavailable.

Thank you.

IGLOU-EU avatar Oct 14 '24 13:10 IGLOU-EU

Hi @IGLOU-EU

What kind of shared hosting doesn't provide php-intl 😨 ? Can you make a PR adding the polyfill please?

tchapi avatar Oct 15 '24 19:10 tchapi

Done in 0427628e34619faa341d0c093ecf5608669f2f37

tchapi avatar Apr 21 '25 11:04 tchapi