README.md in i18n-js-3.0.0.rc3 vs README.md in i18n-js-3.0.0.rc4

- old
+ new

@@ -63,10 +63,12 @@ I18n.defaultLocale = "pt-BR"; I18n.locale = "pt-BR"; I18n.currentLocale(); // pt-BR +**NOTE:** Just make sure you apply your configuration **after i18n.js** is loaded. Otherwise, your settings will be ignored. + In practice, you'll have something like the following in your `application.html.erb`: <script type="text/javascript"> I18n.defaultLocale = "<%= I18n.default_locale %>"; I18n.locale = "<%= I18n.locale %>"; @@ -141,11 +143,11 @@ I18n.t("name", options); I18n.t("email", options); I18n.t("username", options); -You also provide an array as scope. +You can also provide an array as scope. // use the greetings.hello scope I18n.t(["greetings", "hello"]); #### Number formatting @@ -265,14 +267,10 @@ I18n.translations["pt-BR"] = { message: "Uma mensagem especial para vocĂȘ" } -## Troubleshooting - -1. Want to support oldIE? Then you need to include something like [augment.js](http://augmentjs.com) or [es5-shim](https://github.com/kriskowal/es5-shim/). - ## Maintainer - Nando Vieira - <http://nandovieira.com.br> ## Contributing @@ -292,14 +290,14 @@ You can run I18n tests using Node.js or your browser. To use Node.js, install the `jasmine-node` library: - $ npm install jasmine-node -g + $ npm install jasmine-node Then execute the following command from the lib's root directory: - $ jasmine-node spec/js + $ npm test To run using your browser, just open the `spec/js/specs.html` file. You can run both Ruby and JavaScript specs with `rake spec`.