Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/poeditor/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def convert_to_poeditor_language(language)
def write(language, content)
path = path_for_language(language)
unless File.exist?(path)
raise POEditor::Exception.new "#{path} doesn't exist"
FileUtils.mkdir_p(File.dirname(path))
end
File.write(path, content)
UI.puts " #{"\xe2\x9c\x93".green} Saved at '#{path}'"
Expand Down