I'm sorry for my bad English.
In my node.html.twig I have two layouts for two groups of languages.
- English, Ukrainian and Bulgarian
- Arabic, Farsi, Urdu
I can't check with twig which is the active language to load one of the two layouts.
I tried this but it didn't work.
Thanks a lot if anyone can help me
{% if language.getId() == 'en' or 'uk' or 'bg' or 'ru' %}
{{ content.field_mt_srv_body }}
{{ content.field_sp_working_hours }}
{{ content.field_sp_additional_information }}
{{ content.field_mt_srv_video }}
{{ content.field_sp_street_view }}
{{ content.field_sp_city }}
{{ content.field_sp_address }}
{{ content.field_sp_email }}
{{ content.field_field_sp_phone }}
{{ content.field_sp_languages }}
{{ content.field_mt_srv_tags }}
{{ content.field_sp_website }}
{{ content.field_sp_facebook }}
{% else %}
{{ content.field_mt_srv_body }}
{{ content.field_sp_working_hours }}
{{ content.field_sp_additional_information }}
{{ content.field_mt_srv_video }}
{{ content.field_sp_street_view }}
{{ content.field_sp_city }}
{{ content.field_sp_address }}
{{ content.field_sp_email }}
{{ content.field_field_sp_phone }}
{{ content.field_sp_languages }}
{{ content.field_mt_srv_tags }}
{{ content.field_sp_website }}
{{ content.field_sp_facebook }}
{% endif %}