chuk-shirley/laminas-no-intl

Laminas MVC module for php installations with no internationalization extension

0.1.1 2020-07-08 21:23 UTC

This package is auto-updated.

Last update: 2024-04-09 06:12:18 UTC


README

Laminas MVC module for php installations with no i18n extension

Installation

$ composer require chuk-shirley/laminas-no-intl

Configuration

After installing the package, you'll need to add the module to your module config. This is typically found in /config/modules.config.php. Please ensure that this module is listed after Laminas\I18n.

return [
    // ... other modules
    'Laminas\I18n',
    'NoIntl',
];

If you would like to use a locale other than en_US_POSIX, you'll need to copy the configuration file from /config/no_intl.global.php.dist to your application's local config directory, remove the .dist suffix, and specify your locale in the configuration array.

return [
    'no_intl' => [
        'default_locale' => 'en_US_POSIX', // Rename to different locale (e.g. fr-CA, fr-FR, etc.)
    ],
];