Every PacemElement has a culture property/attribute that may contextualize the webcomponent itself in a specific language.
Behind the scenes its change of value reflects onto the
langstandard attribute.
Example:
In the example above the utility function Pacem.Utils.lang() is used to retrieve the contextual culture.
This function checks the lang attribute on the element first, then falls back to the documentElement lang attribute value.
In order to keep the html (documentElement) in sync with the changes you may use the <pacem-html-proxy> custom element.
Rewriting the above sample code, would result in:
Please notice how,
the change of the
cultureattribute/property suddenly triggers a refresh for all the element bindings!
<pacem-data> model (i.e. a new datetime) is set.To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.