Since the language is tied to the suffix of the slug (e.g.
(Not tested yet)
index_de
), you can perhaps try parsing that:PHP Code:
// Initialize some variables to be used in the loop
$langSuffix = '_de'; // your language
// Main loop
foreach ($pages as $page) {
// check that the language suffix in the slug
if (strpos($page['slug'], $langSuffix) !== -1) {
// Do something with this language-specific page
// ...
}
// ...
}
(Not tested yet)