Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n to levels and badges #70

Open
marceloboeira opened this issue Jan 16, 2015 · 1 comment
Open

i18n to levels and badges #70

marceloboeira opened this issue Jan 16, 2015 · 1 comment

Comments

@marceloboeira
Copy link

I guess it would be nice to be able to apply different names to different badges, levels... so, I guess a simple method on the badges and levels that can return a translated version.

in badge.rb

def name(translated)
   translated ? I18n(:"badges.#{name}") : name
end 

in level.rb

def name(translated)
   translated ? I18n(:"levels.#{name}") : name
end 

I can try to code this and open a pull request soon!

@joaomdmoura
Copy link
Owner

Hey @marceloboeira great suggestion!
Would be great to receive a PR on this! make yourself comfortable! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants