How can I filter by slug depending on language selection

WPML has a feature called “Automatically Adjust IDs” which detect when specific items are loaded and adjust IDs so that the results are adjusted for the active language.

This functionality is enabled by default and can be accessed via WPML->Languages (visible in Advanced mode):