Integrate Rails app with OneSky that provide upload
and download
rake command to sync string files
Add this line to your application's Gemfile:
gem 'onesky-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install onesky-rails
Basic setup
rails generate onesky:init <api_key> <api_secret> <project_id>
Generate config file at config/onesky.yml
Upload string files
rake onesky:upload
Upload all string files of I18n.default_locale
to OneSky. Note that default locale must match with base language of project.
Download translations
rake onesky:download
Download translations of files uploaded in all languages activated in project.
- Specify file to upload
- Specify file and language to download
- Support framework other than RoR
- Fork it ( http://github.com/onesky/onesky-rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request