I'm following the guides of creating an custom controller. https://developer.shopware.com/docs/guides/plugins/plugins/storefront/add-custom-controller
It works fine so far, but how do I localize a path to the controller? I peeked into the symfony documentation about routing and found the solution by Annotation https://symfony.com/doc/current/routing.html#localized-routes-i18n. But this doesn't work. No mater how I formated my language string.
/**
* @Route({
* "en-GB": "/joe",
* "de-DE": "/peter",
* "en-GB": "/joe",
* "de-DE": "/peter",
* "en": "/joe",
* "de": "/peter"
* }, name="frontend.example.example", methods={"GET"})
*/