https://github.com/sixarm/sixarm_ruby_set_locale
SixArm.com » Ruby » localization and internationalization set_locale method for ApplicationController
https://github.com/sixarm/sixarm_ruby_set_locale
applicationcontroller gem locale rails ruby
Last synced: 2 months ago
JSON representation
SixArm.com » Ruby » localization and internationalization set_locale method for ApplicationController
- Host: GitHub
- URL: https://github.com/sixarm/sixarm_ruby_set_locale
- Owner: SixArm
- License: other
- Created: 2010-10-18T03:35:08.000Z (over 15 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T09:21:07.000Z (about 1 year ago)
- Last Synced: 2025-09-05T05:16:07.868Z (10 months ago)
- Topics: applicationcontroller, gem, locale, rails, ruby
- Language: Ruby
- Homepage: http://sixarm.com
- Size: 251 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Citation: CITATION.cff
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# SixArm.com → Ruby →
SetLocale module wth rubygem_set_locale methods for I18n internationalization
* Doc:
* Gem:
* Repo:
## Introduction
Gem implementation of code like http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/
For docs go to
Want to help? We're happy to get pull requests.
## Install
### Gem
To install this gem in your shell or terminal:
gem install sixarm_ruby_set_locale
### Gemfile
To add this gem to your Gemfile:
gem 'sixarm_ruby_set_locale'
### Require
To require the gem in your code:
require 'sixarm_ruby_set_locale'
## Example
class ApplicationController < ActionController::Base
...
include SetLocale
before_filter :rubygem_set_locale
...
end