- Issue #95 Support lit-html@2.0.0
- Tests on Edge 93 and Safari 14
- Tests on IE, legacy Edge, and old Safari
- Partially Fixed Issue #93 Make
BaseElements.I18nElement
a dynamic property
- Workaround for Known Issue #92 in demo
- Issue #92 Skip updating
boundElement.lang
if it has already been synchronized with<html lang>
- Workaround for Known Issue #92 in demo
- Update dependencies (gulp, polymerfire, etc.) and package-lock.json
- Issue #89 Automate cleanup and resume I18N features on disconnection and reconnection
- Disconnected elements are garbage-collected if no references to them exist
- Note: Each element must handle its own cleanup and resume tasks on disconnection and reconnection, respectively
discard-on-disconnect
boolean attribute is no longer required and has no effects
discard-on-disconnect
boolean attribute to perform cleanup on disconnection- Cleanup targets:
boundElements
,lang-updated
event listeners,MutationObserver
for<html lang>
attribute
- Cleanup targets:
_i18nElementConnected
boolean property to store connection status of the elementdemo/clock/shadow-repeat.js
: (experimental)- Element repeater in Shadow DOM to avoid disconnection in selective drawing
- Issue #85 [super.render()] lang attribute flips to en with re-rendered elements
boundElements
Map
object stores{ boundElement: boundElement, elements: elementsMapObject }
with the keyname
elementsMapObject
Map
objects store maps fromthis
element toboundElementForThis
element
static get observeHtmlLang()
can be overridden to setthis.observeHtmlLang
atsuper()
constructor
this._fetchStatus
object is maintained per instance whenthis.observeHtmlLang
isfalse
- Support of
this.observeHtmlLang = false
aftersuper()
call inconstructor()
i18n-core.js
for preprocessed sourcesdemo/gulpfile.js
to convertimport {} from "i18n-element/i18n.js"
toimport {} from "i18n-element/i18n-core.js"
- Use the flag
const useI18nCoreJs = true;
to enable the conversion
- Use the flag
- Depending on
wc-putty/polyfill.js
- Depending on
i18n-behavior@^4.0.0
- Import
i18n-behavior/i18n-controller.js
, which is independent of Polymer library - Import
i18n-behavior/i18n-controller-core.js
for preprocessed sources
- Import
- Mandatory dependency on Polymer library
- Polymer elements npm packages must depend on Polymer library by themselves to import
i18n-element.js
- Polymer elements npm packages must depend on Polymer library by themselves to import
- Safari 9 support
- polyfill.js
- Support
lit-html
I18N - Polymer 3.x in ES modules
- Polymer 1.x/2.x support in HTML Imports
- Bower support
- Polymer 2.x Class syntax
i18n-dom-bind
Define = class
thin syntax