Skip to content

Instantly share code, notes, and snippets.

@maxwell
Created January 29, 2011 21:49
Show Gist options
  • Save maxwell/802229 to your computer and use it in GitHub Desktop.
Save maxwell/802229 to your computer and use it in GitHub Desktop.
#this can just be:
def get_javascript_strings_for(language)
yml_path = File.join(Rails.root, "config/locales/diaspora/", "#{language}.yml")
yaml = YAML::load IO.read(yml_path)
yaml[language]["javascripts"]
end
#
def get_javascript_strings_for(language)
Il8n.t('javascripts').to_json
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment