Packages

Integration with the LingoHub API and some nice mix tasks to integrate with gettext.

Current section

Files

Jump to
lingo_hub lib mix tasks lingohub sync.ex
Raw

lib/mix/tasks/lingohub/sync.ex

defmodule Mix.Tasks.Lingohub.Sync do
use Mix.Task
def run(args) do
Mix.Task.run("lingohub.upload", args)
Mix.shell().info("Wait for processing")
Process.sleep(:timer.seconds(10))
Mix.Task.run("lingohub.download", args)
end
end