vendredi 26 mai 2017

Why laravel doesn't handle strings resources with localisations instead with lang code?

Laravel framework provides localisations for string in

/resources/lang/..

In here you'll have directories having lang is 2 codes.

Why not having localisation codes instead? like (en-GB lang 2 iso - country iso2)

If you have to manage differently in your site / application english language depending on your locale this is not going to be an out of the box functionality.

On Laravel 5 Documentation you can see that you can possibly override the strings:

http://ift.tt/2s2wnAE

But actually I don't think this will solve the issue.

Any idea on how to extend Laravel resource/lang to have strings thread as localised and not as langs?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2r4xzpF
via IFTTT

Aucun commentaire:

Enregistrer un commentaire