Make possible to translate the edit-address endpoint slugs

To resolve the issue #4820 I created a function that helps in translating the slugs.