0
votes

Symfony2 Form localization now depends on Symfony/Intl and Symfony/Icu components. If the server you run you application has ICU lib version lower than 4.0 you must use the Symfony/Icu 1.0.x component which emulates the ICU lib.

The problem is that it only has support for en locale. My project needs a few more. How could i extend or add support for more locales into Symfony/Icu 1.0.x?

1

1 Answers

0
votes

As the documentation of intl component suggests, a full replacement of the intl extension is not the goal of the component:

The replacement layer is limited to the locale "en". If you want to use other locales, you should install the intl extension instead.

If you're working on an internationalized app, you should install the intl extension. The component is there to avoid a hard dependency on the extension (since not every app needs internationalization).