README.md in i18n_viz-1.0.1 vs README.md in i18n_viz-1.1.0
- old
+ new
@@ -1,8 +1,8 @@
# I18nViz
-[![Build Status](https://secure.travis-ci.org/railslove/i18n_viz.png?branch=master)](http://travis-ci.org/jhilden/i18n_viz)
+[![Build Status](https://secure.travis-ci.org/railslove/i18n_viz.png?branch=master)](http://travis-ci.org/railslove/i18n_viz)
Gem to visualize i18n strings within anay rails/ruby project using the commonly used [i18n](https://github.com/svenfuchs/i18n) gem.
**Problem**:
@@ -66,13 +66,21 @@
config.middleware.use(I18nViz::Middleware) do |viz|
viz.external_tool_url = "https://webtranslateit.com/en/projects/xxx/locales/en..de/strings?utf8=✓&s="
end
+if you want to configure CSS overrides
+ config.middleware.use(I18nViz::Middleware) do |viz|
+ viz.css_override = "/* valid CSS text here */"
+ end
+
+
### 3. Browse to http://localhost:3000?i18n_viz=true
Add the `i18n_viz=true` parameter to visualize the translatable segments.
+
+Alternatively, a cookie with the name `i18n_viz` can be set to any value to achieve the same effect.
## How it works
The gem works by overwriting the `t()` and `translate()` helpers in your rails app to add the key of the i18n string after the actual translated content: