0.0
Low commit activity in last 3 years
Easily pull in your locales from AppLocale.dev
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 2.0
~> 5.0
~> 13.0

Runtime

~> 0.18.0
>= 0.18.0
 Project Readme

AppLocale

Tests StandardRB Ruby Style Guide

Welcome to AppLocale's Ruby gem. This gem helps customers of AppLocale.dev to easily pull down their latest translations with a simple bundle exec applocale pull.

Installation

Manually:

Add this line to your application's Gemfile:

group :development do
  gem 'applocale-ruby'
end

And then execute:

$ bundle

Or install it yourself as:

$ gem install applocale-ruby

Then follow the instructions in Usage to setup your configuration file.

Usage

Using AppLocale's gem requires a configuration file to be present. By default we assume this file to live at config/applocale.yml but you can alternatively run each command with --config-file=path-to-applocale.yml

You'll need to login to your AppLocale instance and login to your account, click API Tokens to have the information ready for this step after creating an API Token and Project.

Sample configuration file:

applocale:
  host: https://translations.example.com
  project_id: 234qfewaf
  api_key: API_KEY_HERE
  locale_directory: "config/locales" # Default, you can override this if you wish.

Once you have your configuration file setup for your project you can proceed to use the following commands.

After that, to pull ALL your setup languages in AppLocale:

bundle exec applocale pull

Or just your specified languages:

bundle exec applocale pull en es

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/applocale/applocale-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Code Formatting

This project uses Standard to minimize bike shedding related to source formatting.

Please run ./bin/format prior to submitting pull requests.

Code of Conduct

Everyone interacting in the Applocale::Ruby project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.