Implement /api/v1/instance/translation_languages

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2023-05-13 13:22:04 +02:00
commit f954f98fb7
10 changed files with 107 additions and 1 deletions

View file

@ -24,7 +24,16 @@ defmodule TranslationMock do
@impl Provider
def supported_languages(_) do
["en", "pl"]
{:ok, ["en", "pl"]}
end
@impl Provider
def languages_matrix do
{:ok,
%{
"en" => ["pl"],
"pl" => ["en"]
}}
end
@impl Provider