# How to set otherlang.yml as default for my ROR application

**URL:** <https://www.ruby-forum.com/t/how-to-set-otherlang-yml-as-default-for-my-ror-application/195003>\
**Category:** Rails I18n\
**Created:** [September 15, 2010, 8:19am UTC](https://www.ruby-forum.com/t/how-to-set-otherlang-yml-as-default-for-my-ror-application/195003 "2010-09-15T08:19:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arunachandu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d6d6ee/32.png) [@arunachandu](https://www.ruby-forum.com/u/arunachandu)\
**Post date:** [September 15, 2010, 8:19am UTC](https://www.ruby-forum.com/t/how-to-set-otherlang-yml-as-default-for-my-ror-application/195003/1 "2010-09-15T08:19:03Z")

</div>

Hi ,

I am working on Internationalization . I have the otherlanguagefile.yml  
file for all the locales . By default my application takes en.yml . How  
could i set otherlanguagefile.yml as default.

---

<div class="post-metadata">

**Author:** ![arunachandu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d6d6ee/32.png) [@arunachandu](https://www.ruby-forum.com/u/arunachandu)\
**Post date:** [September 15, 2010, 9:11am UTC](https://www.ruby-forum.com/t/how-to-set-otherlang-yml-as-default-for-my-ror-application/195003/2 "2010-09-15T09:11:19Z")

</div>

Read section “2.3 Setting and Passing the Locale” here:

> **[Rails Internationalization (I18n) API — Ruby on Rails Guides](https://guides.rubyonrails.org/i18n.html)**
>
> Rails Internationalization (I18n) APIThe Ruby I18n (shorthand for internationalization) gem which is shipped with Ruby on Rails (starting from Rails 2.2) provides an easy-to-use and extensible framework for translating your application to a single...

also you can check out

> **[\#138 I18n - RailsCasts](http://railscasts.com/episodes/138-i18n)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

Justin

---

<div class="post-metadata">

**Author:** ![arunachandu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d6d6ee/32.png) [@arunachandu](https://www.ruby-forum.com/u/arunachandu)\
**Post date:** [September 15, 2010, 9:57am UTC](https://www.ruby-forum.com/t/how-to-set-otherlang-yml-as-default-for-my-ror-application/195003/3 "2010-09-15T09:57:48Z")

</div>

Justin MacCarthy wrote:

> Read section “2.3 Setting and Passing the Locale” here:  
> [Internationalization (I18n) — Ruby on Rails Guides](http://guides.rubyonrails.org/i18n.html)
> 
> also you can check out  
> [#138 I18n - RailsCasts](http://railscasts.com/episodes/138-i18n)
> 
> Justin

Thanks . .Fixed it by changing in environment.rb file.
