# Using i18n to translate a full page

**URL:** <https://www.ruby-forum.com/t/using-i18n-to-translate-a-full-page/184715>\
**Category:** Rails\
**Created:** [March 7, 2010, 10:14am UTC](https://www.ruby-forum.com/t/using-i18n-to-translate-a-full-page/184715 "2010-03-07T10:14:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![harishreddyreddy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/d6d6ee/32.png) [@harishreddyreddy](https://www.ruby-forum.com/u/harishreddyreddy)\
**Post date:** [March 7, 2010, 10:14am UTC](https://www.ruby-forum.com/t/using-i18n-to-translate-a-full-page/184715/1 "2010-03-07T10:14:48Z")

</div>

Hi All,

The only way that I can think of, to translate a full page is to use  
locale files as below but it seems impractical and incorrect to  
include huge chunks of static content in locale files. Could someone  
suggest a better way of translation pages with static content.

* * *

# config/locale/en.yml

en:  
terms\_conditions:  
paragraph1: “Terms and conditions para1”  
paragraph2: “Terms and conditions para 2”

how\_to:  
paragraph1: “How to para1”  
paragraph2: “How to para2”

# config/locale/ja.yml

ja:  
terms\_conditions:  
paragraph1: “e$B4A;z2\>L\>8r$8$jJ8e(B”  
paragraph2: “e$B%i%I%/%j%U!”%^%i%=%se(B"

how\_to:  
paragraph1: “e$B8^NXBeI=$Ke(B1e$BK|e(Bme$B=P\>l$K$b4^$\_e(B”  
paragraph2: “e$B7R$,$C$Fe(B or e$B$D$J$,$C$Fe(B”

* * *

Thanks
