i18n = { es: { "Comments": "Comentarios", "Cancel": "Cancelar", "Save": "Guardar", "Unregistered": "
Necesitas iniciar sesión o registrarte para continuar.
" }, en: { "Comments": "Coments", "Cancel": "Cancel", "Save": "Save", "Unregistered": "You need to sign in or sign up to continue." } } window.Gettext = (key) -> gettext: (key) -> locale_id = $('html').attr('lang') locale = i18n[locale_id] if locale && locale[key] return locale[key] key