{"en_US": "<data inherit_id=\"portal.language_selector\">\n    <xpath expr=\"//t[@t-nocache]\" position=\"attributes\">\n        <attribute name=\"t-nocache-flags\">flags</attribute>\n    </xpath>\n\n    <xpath expr=\"//t[@t-set='active_lang']\" position=\"before\">\n        <t t-if=\"lang not in (lg[0] for lg in languages)\">\n            <t t-set=\"lang\" t-value=\"website.default_lang_id.code\"/>\n        </t>\n    </xpath>\n\n    <!-- Always show the language selector on editable websites -->\n    <xpath expr=\"//t[@t-set='language_selector_visible']\" position=\"after\">\n        <t t-set=\"language_selector_visible\" t-value=\"language_selector_visible or (website and (editable or translatable))\"/>\n    </xpath>\n\n    <!-- Add the button to add a language -->\n    <xpath expr=\"//t[@t-foreach='languages']\" position=\"after\">\n        <t t-call=\"website.language_selector_add_language\">\n            <t t-set=\"dropdown\" t-value=\"True\"/>\n        </t>\n    </xpath>\n\n    <!-- Add the 'flags' possibility -->\n    <xpath expr=\"//button[contains(@t-attf-class, 'dropdown-toggle')]/span\" position=\"before\">\n        <t t-if=\"flags\" t-call=\"website.lang_flag\">\n            <t t-set=\"flag_image_src\" t-value=\"active_lang[4]\"/>\n        </t>\n    </xpath>\n    <xpath expr=\"//*[contains(@t-attf-class, 'js_change_lang')]/span\" position=\"before\">\n        <t t-if=\"flags\" t-call=\"website.lang_flag\">\n            <t t-set=\"flag_image_src\" t-value=\"lg[4]\"/>\n        </t>\n    </xpath>\n</data>"}