Get language path prefix code as contexual filter parameter In Drupal 7, I have a block that shows recent posts which created with views.

I want it to show the translated posts of each language when I click the language switcher to switch the language.

I have two language prefixes (url code):
'en' and 'fa'
mysite.com/en
mysite.com/fa

I set in a contexual filter of that block view to show just the nodes of the specific language by raw value from url set to 1, but it considers the next value of language code as the first parameter.

What should I do to make Drupal consider the language code as the first value?
In Views with i18n there is also a filter available for that matter:


  Content: Language


You can set this to 'Current user's language' in order to filter your content based on the selected language.