diff --git a/bower.json b/bower.json index 6df4f47..80ae9c8 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "i18n-msg", - "version": "1.0.1", + "version": "1.0.0", "authors": [ "Eric Bidelman " ], @@ -22,10 +22,11 @@ "/tests/" ], "dependencies": { - "polymer": "Polymer/polymer#^1.0.0", + "polymer": "Polymer/polymer#^1.0.3", "observe-js": "Polymer/observe-js" }, "devDependencies": { + "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", "web-component-tester": "Polymer/web-component-tester#master" } } diff --git a/demo.html b/demo/index.html similarity index 94% rename from demo.html rename to demo/index.html index 0e0ea64..90880ef 100644 --- a/demo.html +++ b/demo/index.html @@ -5,8 +5,8 @@ i18n-msg element Demo - - + + diff --git a/locales/en.json b/demo/locales/en.json similarity index 100% rename from locales/en.json rename to demo/locales/en.json diff --git a/locales/es.json b/demo/locales/es.json similarity index 100% rename from locales/es.json rename to demo/locales/es.json diff --git a/locales/fr.json b/demo/locales/fr.json similarity index 100% rename from locales/fr.json rename to demo/locales/fr.json diff --git a/locales/pt-br.json b/demo/locales/pt-br.json similarity index 100% rename from locales/pt-br.json rename to demo/locales/pt-br.json diff --git a/i18n-msg.html b/i18n-msg.html index 9f7b568..0a7c786 100644 --- a/i18n-msg.html +++ b/i18n-msg.html @@ -23,7 +23,7 @@ file on your server. For example, `I18nMsg.lang = 'es'` will use `locales/es.json`. `I18nMsg.lang = 'fr'` would use message strings from `locales/fr.json`. -The directory name can be configured by using the `messagesUrl` attribute, but the file +The directory name can be configured by using the `messagesUrl` property, but the file cannot. `` will always attempt to use messages from `/.json`. Note: - message files are read once and reused for all instances of ``. @@ -40,7 +40,6 @@ ...

"Days" in Spanish is days!

- @@ -50,224 +49,208 @@ ### Getting a message: // No argument returns the instance's message: - document.querySelector('i18n-msg').getMessage(); + document.querySelector('i18n-msg').getMsg(); // Get a message by an id: - document.querySelector('i18n-msg').getMessage('days'); + document.querySelector('i18n-msg').getMsg('days'); @element i18n-msg @homepage https://ebidel.github.io/i18n-msg --> - diff --git a/index.html b/index.html index b5e7287..ee99513 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,6 @@