Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Custom I18N Router Bundle Laravel Package

eb78/custom-i18n-router-bundle

View on GitHub
Deep Wiki
Context7

Build Status

CustomI18nRouterBundle

i18n Bundle for Symfony.

Installation

Download the library using Composer:

composer require eb78/custom-i18n-router-bundle

Register Bundle

    ...
    new EB78\CustomI18nRouterBundle\EB78CustomI18nRouterBundle()
    ...

Add Parameters

    ...
parameters:
    available_locales: ['fr-fr']
    default_locale: 'fr-fr'
    ...

Create i18n config files.

For exemple, for a French file, create a file with name "i18n_fr-fr" with content like that :

( fr-fr should be into available_locales parameters )

parameters:
    i18n_fr-fr:
        prefix: ""
        name: "france"
        localeUId: 1
        locale: "fr_FR"
        host: "yourdomain.fr"
        routes:
            home: /accueil/
            contact: /contactez-nous/

Requirements

  • PHP >= 7.x
  • Symfony 2.8
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
bugban/symfony
beyonder-capi/workflow-extensions-bundle
beyonder-capi/job-queue-bundle
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin