I18n Translation Interface for end user in Rails app
__ _____ _ _
/__\_ ___ __ _ __ ___ ___ ___ /__ \_ __ __ _ _ __ ___| | __ _| |_ ___
/_\ \ \/ / '_ \| '__/ _ \ __/ __| / /\/ '__/ _` | '_ \/ __| |/ _` | __/ _ \
//__ > <| |_) | | | __\__ \__ \ / / | | | (_| | | | \__ \ | (_| | |_ __/
\__/ /_/\_\ .__/|_| \___|___/___/ \/ |_| \__,_|_| |_|___/_|\__,_|\__\___|
|_|
=====
Login with demo account:
username: express_translate
password: password
gem 'express_translate', '~> 1.0.13'
Run on terminal.
bundle install
Open terminal and run:
rails g express_translate:install
Start Redis Server
redis-server
###Basic usage
You can see login page at: /express_translate/login
Login with account:
username: "username"
password: "password"
###Advanced usage
Account list config in /config/express_translate.yml
.
You can add account:
account:
-
username: "your_username"
password: "your_password"
You need reset account for modified
http://you_domain/express_translate/reset/account
rails g express_translate:seed
rails g express_translate:reset
Add script to header page
<script src="http://you_domain/express_translate/i18n/package_id"></script>
Note:
- you_domain: e.g
localhost:3000
- package_id: is a package id.
- CSV file
- YML file
- CSV file
- Backend for Ruby on Rails
- Frontend (Single Page Application) with I18next (can you see more info: http://i18next.com)
- This library aims to support and is tested against the following Ruby implementations:
- Ruby 1.9.3
- Ruby 2.0.0
- Ruby 2.1.2
- This library aims to support the following Rails implementations:
- More than Rails 3.0
- Contribution, Suggestion and Issues are very much appreciated :). Please also fork and send your pull request!
- Make sure to add tests for it when sending for pull requests. This is important so I don't break it in a future version unintentionally.
Copyright (c) 2014 Karl, released under the MIT license