projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Allow listing languages, setting source language (#192)
[akkoma]
/
lib
/
pleroma
/
akkoma
/
translators
/
translator.ex
1
defmodule Pleroma.Akkoma.Translator do
2
@callback translate(String.t(), String.t() | nil, String.t()) ::
3
{:ok, String.t(), String.t()} | {:error, any()}
4
@callback languages() :: {:ok, [%{name: String.t(), code: String.t()}]} | {:error, any()}
5
end