File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,8 @@ defmodule Trans.Translator do
182182 end
183183 end
184184
185- defp translate_fields ( % { __struct__: module } = struct , locale , default_locale ) when is_list ( locale ) do
185+ defp translate_fields ( % { __struct__: module } = struct , locale , default_locale )
186+ when is_list ( locale ) do
186187 fields = module . __trans__ ( :fields )
187188
188189 Enum . reduce ( fields , struct , fn field , struct ->
@@ -193,7 +194,7 @@ defmodule Trans.Translator do
193194 end )
194195 end
195196
196- defp translate_fields ( % { __struct__: module } = struct , locale , default_locale ) do
197+ defp translate_fields ( % { __struct__: _module } = struct , locale , default_locale ) do
197198 translate_fields ( struct , [ locale ] , default_locale )
198199 end
199200
You can’t perform that action at this time.
0 commit comments