How to make friendly URL locale sensitive ?

thumbnail
Eric COQUELIN, modified 6 Years ago. Expert Posts: 254 Join Date: 11/3/13 Recent Posts
Dear community,
When declaring a Friendly URL, there is no obvious option/attribute to say "this mapping applies to French" and "this other one applies to German".
As a result, if I want my mapping prefix to depend on the language, how can I acheive this requirement ?
@Component(
        property = {
            "com.liferay.portlet.friendly-url-routes=META-INF/friendly-url-routes/routes.xml",
            "javax.portlet.name=" + OfferPortletKeys.PORTLET_NAME
        },
        service = FriendlyURLMapper.class
    )
public class OfferFriendlyURLMapper extends DefaultFriendlyURLMapper {    private static final String _MAPPING = "annonce";
    @Override
    public String getMapping() {
        return _MAPPING;
    }
}

Thank you,