Skip to content
Convert an Android strings.xml into Ruby on Rails i18n yml file
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
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
Something went wrong with that request. Please try again.