Use the locale
attribute to set the language. cy
is currently the only supported language code.
<recycling-locator locale="cy"></recycling-locator>
Provide the postcode
attribute to skip initial location entry.
<recycling-locator postcode="AB123CD"></recycling-locator>
The <recycling-locator>
will dispatch a custom "ready" event when the UI has rendered.
document
.querySelector('recycling-locator')
.addEventListener('ready', () => {
console.info('Ready to recycle');
});
Looking to contribute to the code? A good starting point is the contributing docs.