No commit activity in last 3 years
No release in over 3 years
Provide a web interface for updating your WebTranslateIt.com translations.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

rack-webtranslateit

Usage:

  • Sign up for a webtranslateit.com premium account.

  • Create a config/translation.yml file:

      # The Project API Token from Web Translate It
      api_key: ffffffffffffffffffffffffffffffffffffffff
      
      # The locales not to sync with Web Translate It.
      # Pass an array of string, or an array of symbols, a string or a symbol.
      # eg. [:en, :fr] or just 'en'
      master_locale: :en
      
      # A list of files to translate
      # You can name your language files as you want, as long as the locale name match the
      # locale name you set in Web Translate It, and that the different language files names are
      # differenciated by their locale name.
      # For example, if you set to translate a project in en_US in WTI, you should use the locale en_US in your app
      #
      # wti_id is the file id from Web Translate It.
      files:
        1234: config/locales/[locale].yml
      
      # Optional password to access the web interface
      password: password
    
  • Add the middleware:

      config.gem 'rack-webtranslateit'
      config.middleware.use "Rack::Webtranslateit", "/translations/"
    
  • Go to http://yourapp/translations.

  • Click update translations.