> Some plugins/themes don’t work correctly when setting the language from the content. Try setting the language from the directory name instead.
Clarify please, more detailed how do you see implementation of directory name? As we do not understand clearly how it could be implemented if all translation stored in wpml files. As Polylang uses wpml libraries.