bin/crowdin-cli in crowdin-cli-0.1.1 vs bin/crowdin-cli in crowdin-cli-0.1.2

- old
+ new

@@ -386,11 +386,17 @@ file[:dest].sub!(common_dir, '') if remote_project_tree[:files].include?(file[:dest]) if File.exist?(file[:source]) print "Uploading `#{file[:source].sub(@base_path, '')}'" - @crowdin.upload_translation([] << file, language, params) - puts "\rUploading `#{file[:source].sub(@base_path, '')}' - OK" + + resp = @crowdin.upload_translation([] << file, language, params) + case resp['files'].first[1] + when 'skipped' + puts "\rUploading `#{file[:source].sub(@base_path, '')}' - Skipped" + when 'updated' + puts "\rUploading `#{file[:source].sub(@base_path, '')}' - OK" + end else puts "Warning: Local file `#{file[:source]}' does not exists" end else # if source file not exist, don't upload translation