@ -64,6 +64,19 @@ local mappings = {
end,
desc = "run celery",
},
["<leader>jl"] = { desc = "Language" },
["<leader>jlc"] = {
function()
django.compile_messages()
desc = "Compile messages",
["<leader>jlm"] = {
django.make_messages()
desc = "Make messages",
}
@ -273,4 +273,15 @@ function M.run_celery()
end
function M.make_messages()
local term_num = 11
toggleterm.exec("./manage.py makemessages -a", term_num, 100, ".", "float", "make_messages", false)
function M.compile_messages()
local term_num = 12
toggleterm.exec("./manage.py compilemessages", term_num, 100, ".", "float", "compile_messages", false)
return M