An open API service indexing awesome lists of open source software.

https://github.com/tegon/game-translator

Interface para traduzir games para vários idiomas, usando o Globalize3.
https://github.com/tegon/game-translator

Last synced: about 2 months ago
JSON representation

Interface para traduzir games para vários idiomas, usando o Globalize3.

Awesome Lists containing this project

README

          

GameTranslator
--------------

You can change attributes in specific locales calling the method like this:
```ruby
attribute_locale
```
For example, change name in English(en)
```ruby
Game.first.name
=> "Jogo 1"
Game.first.update_attribute(:name_en, 'Game 1')
=> "Game 1"
```
Now if you change the actual locale
```ruby
I18n.locale = :en
```
It will return the name in English
```ruby
Game.first.name
=> "Game 1"
```
You can also call this way
```ruby
Game.first.name_en
=> "Game 1"
```