Sha256: f08c921e4113e0fe05c17e7ea931ed11cb60a841b3e3ac5c0bad8da611b1bd4a
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
{<img src="https://badge.fury.io/rb/translatable_routes.png" alt="Gem Version" />}[http://badge.fury.io/rb/translatable_routes] {<img src="https://codeclimate.com/github/museways/translatable_routes.png" />}[https://codeclimate.com/github/museways/translatable_routes] {<img src="https://travis-ci.org/museways/translatable_routes.png?branch=master" alt="Build Status" />}[https://travis-ci.org/museways/translatable_routes] {<img src="https://gemnasium.com/museways/translatable_routes.png" alt="Dependency Status" />}[https://gemnasium.com/museways/translatable_routes] = Translatable Routes Minimalistic toolkit to translate routes. = Install Put this line in your Gemfile: gem 'translatable_routes' Then bundle: $ bundle = Usage Inside each locale yaml file: es: routes: users: "usuarios" profile: "perfil" login: "entrar" (Please note each part of the path it's translated individually, you don't have to put translations for paths like "users/1/profile" just translate "users" and "profile", the plugin will do the rest) In your config/routes.rb use the localized block to decide wich routes will be translated: localized do get 'about' => 'pages#about' end The helpers inside views and controllers will continue working the same but I18n.locale will be use as default locale: about_path # /en/about
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translatable_routes-1.3.0 | README.rdoc |