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.
 
 
 
 

40 linhas
805 B

  1. # frozen_string_literal: true
  2. module SettingsHelper
  3. HUMAN_LOCALES = {
  4. en: 'English',
  5. ar: 'عربى',
  6. bg: 'Български',
  7. de: 'Deutsch',
  8. eo: 'Esperanto',
  9. es: 'Español',
  10. fi: 'Suomi',
  11. fr: 'Français',
  12. hr: 'Hrvatski',
  13. hu: 'Magyar',
  14. id: 'Bahasa Indonesia',
  15. io: 'Ido',
  16. it: 'Italiano',
  17. ja: '日本語',
  18. nl: 'Nederlands',
  19. no: 'Norsk',
  20. oc: 'Occitan',
  21. pl: 'Polszczyzna',
  22. pt: 'Português',
  23. 'pt-BR': 'Português do Brasil',
  24. ru: 'Русский',
  25. uk: 'Українська',
  26. 'zh-CN': '简体中文',
  27. 'zh-HK': '繁體中文(香港)',
  28. 'zh-TW': '繁體中文(臺灣)',
  29. }.freeze
  30. def human_locale(locale)
  31. HUMAN_LOCALES[locale]
  32. end
  33. def hash_to_object(hash)
  34. HashObject.new(hash)
  35. end
  36. end