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

Version Path
iugusdk-1.0.11 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.10 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.9 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.8 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.7 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.6 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.5 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.4 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.3 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.2 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.1 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.0.alpha.32 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.0.alpha.31 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.0.alpha.30 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.0.alpha.29 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.0.alpha.28 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.0.alpha.27 lib/generators/templates/web-app/web-app/i18n-languages.js.erb
iugusdk-1.0.0.alpha.26 lib/generators/templates/web-app/web-app/i18n-languages.js.erb