Allow to change language

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-06-16 18:00:27 +02:00
parent 08b4fb9b08
commit 5cb3f478ae
8 changed files with 110 additions and 9 deletions

View File

@@ -250,5 +250,10 @@ defmodule Mobilizon.GraphQL.Schema.UserType do
arg(:notification_pending_participation, :notification_pending_participation_enum)
resolve(&User.set_user_setting/3)
end
field :update_locale, :user do
arg(:locale, :string)
resolve(&User.update_locale/3)
end
end
end