Socket
Book a DemoInstallSign in
Socket

onesky-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onesky-rails

bundlerRubygems
Version
1.6.0
Version published
Maintainers
1
Created
Source

Onesky::Rails

Build Status

Integrate Rails app with OneSky that provide upload and download rake command to sync string files

Installation

Add this line to your application's Gemfile:

gem 'onesky-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install onesky-rails

Usage

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 other than the base language.

Download base language translations

rake onesky:download_base

Download translations of files uploaded only for the base language.

Download all languages translations

rake onesky:download_all

Download translations of files uploaded for all the languages including the base language.

TODO

  • Specify file to upload
  • Specify file and language to download
  • Support different backend

Contributing

  • 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

FAQs

Package last updated on 11 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts