OneSky Dev

How to localize Ruby on Rails applications

Tutorial from Ruby on Rails offical website

http://guides.rubyonrails.org/i18n.html

Additional...

A cool gem for handling gender, check out i18n-inflector-rails.

Examples:

locale/en-US.yml
en-US:
  hello_string:
    "Hello %{name}"
  number_of_message:
    one: "%{number} message"
    other: "%{number} messages"
  activitiy_message:
    f: "She read this article."
    m: "He read this article."
locale/zh-TW.yml
zh-TW:
  hello_string:
    "%{name}你好"
  number_of_message:
    one: "%{number}則訊息"
    other: "%{number}則訊息"
  activitiy_message:
    f: "她讀了這篇文章。"
    m: "他讀了這篇文章。"

More...

We have a gem to connect OneSky APIs for translation auto-sync, check out here.