# Multilingual resources

**URL:** <https://www.ruby-forum.com/t/multilingual-resources/108642>\
**Category:** Rails\
**Created:** [July 5, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/multilingual-resources/108642 "2007-07-05T16:10:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![steerio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/919ad9/32.png) [@steerio](https://www.ruby-forum.com/u/steerio)\
**Post date:** [July 5, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/multilingual-resources/108642/1 "2007-07-05T16:10:23Z")

</div>

Hey!

We’re trying to create multilingual resources, i.e. ones that can have a  
language selector in the URL - to have search engines index all the  
language versions of resources. The optional solution would be:

/foobars/123.en.html  
/foobars/123.fr.html, etc…

Is this possible somehow using ordinary Rails routing (that is without  
external rewrite rules, etc)? We only need this feature for HTML pages -  
so /foobars/123.xml would return all languages as they’re all part of  
the resource.

For one or more reasons we’ve already ruled out the following URL  
schemes:

/en/foobars/123  
/foobars/en/123

These lead to resource duplication though this whole thing is about  
different versions/views of the same resource. When creating or editing  
said resources our users won’t edit them one language at a time but as a  
whole. These latter schemes are also problematic if we consider REST web  
services.

Any help will be appreciated! Thanks,  
Roland Venesz
