https://github.com/takeyuweb/rails-translation-and-globalization-study
https://github.com/takeyuweb/rails-translation-and-globalization-study
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/takeyuweb/rails-translation-and-globalization-study
- Owner: takeyuweb
- Created: 2015-05-22T06:57:30.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-22T06:57:34.000Z (about 11 years ago)
- Last Synced: 2025-03-15T15:13:00.253Z (over 1 year ago)
- Language: Ruby
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
rails-translation-and-globalization-study
---
Railsで翻訳と他言語化に対応する実験です。
日本語ロケールで保存すると、英語版を自動翻訳して保存。
英語ロケールで入力すると、日本語版を自動翻訳して保存。
## Environment Variables
MICROSOFT_CLIENT_ID Microsoft翻訳に使用するOAuthクライアントID
MICROSOFT_CLIENT_SECRET Microsoft翻訳に使用するOAuthクライアントSecret
export MICROSOFT_CLIENT_ID=xxxxxxxxxxxxxxxx
export MICROSOFT_CLIENT_SECRET=xxxxxxxxxxxxxxxx
bundle exec rails s
## URL
### 日本語版
[http://localhost:3000/ja/](http://localhost:3000/ja/)
### 英語版
[http://localhost:3000/en/](http://localhost:3000/en/)
## gems
### globalize
### http_accept_language
### microsoft_translator