xfra35 / f3-multilang

Create multilingual apps with this localization plugin for the PHP Fat-Free Framework
GNU General Public License v3.0
48 stars 13 forks source link

Not all URLs to get multilingual #3

Closed rafatrace closed 9 years ago

rafatrace commented 9 years ago

Imagine that I have a backoffice, in my backoffice urls I don't want the language prefix to appear. For example:

-Public url: http://www.example.com/en/contacts http://www.example.com/pt/contactos http://www.example.com/en/portfolio http://www.example.com/pt/portfolio

-Backoffice url: http://www.example.com/admin/users http://www.example.com/admin/news http://www.example.com/admin/configs

xfra35 commented 9 years ago

Hey @rafaelmoraissantos, good point!

The same as raised in #2. Please see my proposal there.

xfra35 commented 9 years ago

Hey @rafamds, you can now include prefixes in MULTILANG.global:

[MULTILANG]
global = /api, /admin, /path/to/folder