Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #182

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ For documentation details see component demo (`npm i`, `polymer serve`)

## Internationalization

- `language` property available to be set.
- `language` property is initialized from window.EtoolsLAnguage || 'en'.
- The component handles the `language-changed` event fired by the parent app
- `assets/translations.js` contains the translations file.

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@unicef-polymer/etools-dropdown",
"description": "Polymer 3 dropdown element with searchable options, single and multiple selection",
"version": "5.0.0",
"version": "5.0.1",
"homepage": "https://github.com/unicef-polymer/etools-dropdown",
"repository": {
"type": "git",
Expand Down
5 changes: 2 additions & 3 deletions src_ts/mixins/common-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,8 @@ export function CommonFunctionalityMixin<T extends MixinTarget<LitElement>>(supe

constructor(...args: any[]) {
super(args);
if (!this.language) {
this.language = window.localStorage.defaultLanguage || 'en';
}
// @ts-ignore
this.language = window.EtoolsLanguage || 'en';
this._handleLanguageChange = this._handleLanguageChange.bind(this);
this._handleParentFocus = this._handleParentFocus.bind(this);
}
Expand Down