lib/aigu/ember_importer.rb in aigu-0.5.1 vs lib/aigu/ember_importer.rb in aigu-0.6
- old
+ new
@@ -14,10 +14,10 @@
protected
def parse_json
json = File.read(@input_file)
- @object = JSON.parse(json)
+ @object = JSON.parse(json).sort_with_keys
end
def write_javascript_file
file_path = File.join(@output_directory, "#{@locale}/translations.js")
puts "Generating #{file_path}"