Convert an Android strings.xml into Ruby on Rails i18n yml file
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
convert.rb

README.md

Merge an Android strings.xml into Ruby on Rails i18n yml file

Usage

ruby convert.rb android_strings_xml_path rails_yml_path

Description

This simple ruby script will merge Android strings file into Ruby on Rails i18n yml file. The result is sorted alphabetically. It's safe to rerun. Current only English is tested but it can be easily convert to other languages.

TODO

  1. Merge both ways
  2. Automatically enumerate all possible android locales and create according to locales for Rails