Sha256: e00fa0ed42f64c640a80d5d18bc3f02cf1f6e8c2c401fc36c533be5e78283996
Contents?: true
Size: 451 Bytes
Versions: 46
Compression:
Stored size: 451 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
46 entries across 46 versions & 1 rubygems