in reply to Re^2: Mojolicious i18n "inflate"
in thread Mojolicious i18n "inflate"

Hi,

It appears you need a dash  perl app.pl get / -H "Accept-Language: pt-br"

Maybe the DEBUG option should have logged that pt_br is not recognized ... might be worth a bug report to the author

FYI, FWIW, App::I18N exists :)

Also, debug/log info is data, so Put <code> </code> tags around it

Replies are listed 'Best First'.
Re^4: Mojolicious i18n "inflate" (Accept-Language: pt-br)
by pazt (Acolyte) on Oct 09, 2016 at 23:49 UTC

    beech,

    Finally it's works. The second "App" directory was missing.

    The right dir structure is:

    App |+- App.pl |- App | |- I18N | |- fr.pm | +- pt_br.pm

    Thank you very much for your help beech

    Maybe i'll create a github for the truly mojolicious rookies like me. haha
    It's an awesome web framework.