The code powering m.abunchtell.com https://m.abunchtell.com
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

28 linhas
513 B

  1. # frozen_string_literal: true
  2. module SettingsHelper
  3. HUMAN_LOCALES = {
  4. en: 'English',
  5. de: 'Deutsch',
  6. es: 'Español',
  7. eo: 'Esperanto',
  8. fr: 'Français',
  9. hu: 'Magyar',
  10. pt: 'Português',
  11. fi: 'Suomi',
  12. ru: 'Русский',
  13. uk: 'Українська',
  14. ja: '日本語',
  15. 'zh-CN': '简体中文',
  16. 'zh-HK': '繁體中文(香港)',
  17. }.freeze
  18. def human_locale(locale)
  19. HUMAN_LOCALES[locale]
  20. end
  21. def hash_to_object(hash)
  22. HashObject.new(hash)
  23. end
  24. end