mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-10-30 13:33:12 +00:00
07a48b9293
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk> Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/371
9 lines
348 B
Elixir
9 lines
348 B
Elixir
defmodule Pleroma.Akkoma.Translator do
|
|
@callback translate(String.t(), String.t() | nil, String.t()) ::
|
|
{:ok, String.t(), String.t()} | {:error, any()}
|
|
@callback languages() ::
|
|
{:ok, [%{name: String.t(), code: String.t()}],
|
|
[%{name: String.t(), code: String.t()}]}
|
|
| {:error, any()}
|
|
end
|