{"repo":"renuo/i18n-docs","free":true,"listed":false,"github":"https://github.com/renuo/i18n-docs","clone":"git clone https://github.com/renuo/i18n-docs.git","description":"i18n gem to store and read translations from google docs","language":"Ruby","stars":57,"topics":["r-josuaschmid","translations","google-spreadsheet","productivity"],"license":"MIT","category":"productivity","readme_excerpt":"i18n-docs i18n-docs is a ruby gem that helps you to keep translations stored in Google Docs. This makes it easier for translators and project members to coordinate changes and updates. In addition, the standard features of Google Docs are super handy for this process: revision tracking, authorization, publishing, etc. Although we use it with Google Docs, it could be used with any CSV file. this gem is currently in use and tested with Rails 6.1, 7.0. It may works with older versions as well. Features download translations from multiple Google spreadsheets and store to YAML files import/export YAML files with a Google Spreadsheet check YAML files for missing translations ( rake i18n:find missing keys ) Tests Verify the quality of this gem by checking out this repo and running: bundle install rake test Usage Configuration Add the GEM to your project: gem 'i18n-docs' Create a configuration file in config/translations.yml : Rails Finally, let Rails know what locales you will be using. Add this to config/application.rb : This defines which languages and translation files to import from a Google Spreadsheet. The content of the Spreadsheet URL is stored to a file called e.g. example1.yml within folders config/locales/en and all other detected locales. Non Rails Load rake tasks in your Rakefile : Create environment task in your Rakefile : The minimal scope of this task is to set up I18n.available locales . Translations will be stored under config/locales in project root directory. Don","default_branch":null,"files":null,"tree":[],"storefront":"/r/renuo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/renuo/i18n-docs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}