Skip to content

i18n to levels and badges #70

Description

@marceloboeira

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!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions