Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

readme

  • Loading branch information...
commit 89d17b72a14598a4d2596be89ec1c2d22a0e5e76 1 parent 2251a09
NicoArbogast authored committed
Showing with 14 additions and 0 deletions.
  1. +14 −0 README.rdoc
View
14 README.rdoc
@@ -155,6 +155,20 @@ You can specify the following option:
Note that the 'no_prefixes' option will override the 'prefix_on_default_locale' option.
+<b>Keep untranslated routes</b>
+
+In case you want to keep access to untranslated routes. Resulting in this structure:
+
+ /en/available-products
+ /fr/produits-disponibles/
+ /products/
+
+You can specify the following option:
+
+ ActionDispatch::Routing::Translator.translate_from_file('config/locales/routes.yml', { :keep_untranslated_routes => true })
+
+This option is not meant to be used with :no_prefixes.
+
<b>Namespaced backends</b>
I usually build app backend in namespaced controllers, routes, ... using translated routes will result in duplicated routes or prefixed ones. In most cases you won't want to have the backend in several languages, you can set 'routes.rb' this way:
Please sign in to comment.
Something went wrong with that request. Please try again.