- Moved polymer-cli to devDependencies in package.json.
- Replace hardcoded Language label in t-select with dynamic label property.
- Refactor t-number's Bengali number translation feature to use a simple find and replace.
- Add
<t-select>
element for reusable language selection widget. - In
<t-translate>
, sanitize HTML from fragements for better compatibility with templating libraries and remove outer whitespace to allow for HTML whitespace formatting.
- Add
<t-translate>
and shorthand<t-t>
for translating from JSON object assigned towindow.translation
. - Remove unnecessary dependency on Polymer for
<t-lang>
. Should make things just a little faster to load and lighter on memory usage. - Add
<t-number>
element for translating numbers, bengali support only at the moment.
- Fix bug in combTranslations that would retrieve the default document element language
- Added exported
combTranslations
function intranslation-web-component/util.js
for removing translation markup given a specified language code. This is useful for situations where you may be binding translations to a template that removes markup from data to prevent XSS attacks (Angular, Polymer, LitElement, etc.)