osw3/symfony-locale-tools

There is no license information available for the latest version (0.0.2) of this package.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/osw3/symfony-locale-tools

0.0.2 2026-01-30 14:44 UTC

This package is auto-updated.

Last update: 2026-01-30 14:44:53 UTC


README

Install

composer require OSW3/symfony-locale-tool

Config

config/packages/translations.yaml

framework:
    enabled_locales: ['en', 'nl', 'fr', 'it', 'no']
    default_locale: en
    translator:
        default_path: '%kernel.project_dir%/translations'
        fallbacks:
            - en
            - fr
        providers:

Services

$localeToolsService->getCurrent() // string
$localeToolsService->getDefault() // string
$localeToolsService->getAvailable() // array[code, name]

Twig

{{ locale_current() }}
{{ locale_default() }}
{{ locale_available() }}