diff --git a/bower.json b/bower.json index 791b2da..40a1cd4 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "strolch-wc-localize-behavior", "description": "Strolch Polymer Localization Behavior extension", - "version": "1.1.0", + "version": "1.1.1", "authors": [ "Franz Nieschalk", "Robert von Burg" diff --git a/strolch-wc-localize-behavior.html b/strolch-wc-localize-behavior.html index 5ebb3db..39faa6e 100644 --- a/strolch-wc-localize-behavior.html +++ b/strolch-wc-localize-behavior.html @@ -4,14 +4,16 @@ // custom behaviour accessing the configuration above StrolchLocalizeBehaviorImpl = { - attached: function() { + attached: function () { var locale = Strolch.getUserLocale(); // load the language resource of the configured language this.language = locale; this.useKeyIfMissing = true; - console.log('Loading locales ' + this.localesPath); - this.loadResources(this.resolveUrl(this.localesPath)); + + if (Strolch.isNotEmptyString(this.localesPath)) { + this.loadResources(this.resolveUrl(this.localesPath)); + } } };