Make webui use translated scope descriptions

This commit is contained in:
tusooa 2023-03-04 19:58:05 -05:00
parent 530284e1b9
commit 6d0ebccdb0
No known key found for this signature in database
GPG Key ID: 42AEC43D48433C51

View File

@ -8,7 +8,7 @@
<%= checkbox @form, :"scope_#{scope}", value: scope in @scopes && scope, checked_value: scope, unchecked_value: "", name: "authorization[scope][]" %>
<%= label @form, :"scope_#{scope}", String.capitalize(scope) %>
<%= if scope in @scopes && scope do %>
<%= String.capitalize(scope) %>
<code><%= scope %></code> <%= :"Elixir.Gettext".dgettext(Gettext, "oauth_scopes", scope) %>
<% end %>
</div>
<% else %>