Sha256: a57784a726cc4cd30107433d313477669e356975b58cefc1c75d87155120906d
Contents?: true
Size: 454 Bytes
Versions: 18
Compression:
Stored size: 454 Bytes
Contents
<%= # UTF-8 (Fix for Sprockets UTF-8 AutoDetect: รก) locale_directory = "#{File.expand_path(File.dirname(__FILE__))}/locale" files = Dir.glob("#{locale_directory}/*.json") content = "var AVAILABLE_LOCALES = Array();\r\n" files.each do |filename| language_name = File.basename(filename, ".json") contents = File.open(filename,"r:UTF-8").read content += "AVAILABLE_LOCALES['#{language_name}'] = #{contents}\r\n" end content %>
Version data entries
18 entries across 18 versions & 1 rubygems