Skip to content

Commit 2e06aeb

Browse files
committed
Why or why
1 parent 3020d6e commit 2e06aeb

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

lib/cldr/backend/cldr_backend.ex

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,15 @@ defmodule Cldr.Backend do
489489

490490
with {:ok, %LanguageTag{cldr_locale_name: locale_name}} <- validate_locale(locale) do
491491
marks = quote_marks_for(locale_name)
492+
493+
if !is_map(marks.quotation_start) do
494+
IO.inspect marks.quotation_start, label: "Quote start for #{locale_name} is not a map"
495+
end
496+
497+
if !is_map(marks.quotation_end) do
498+
IO.inspect marks.quotation_end, label: "Quote end for #{locale_name} is not a map"
499+
end
500+
492501
quote_start = quote_preference(marks.quotation_start, preference)
493502
quote_end = quote_preference(marks.quotation_end, preference)
494503

@@ -806,15 +815,7 @@ defmodule Cldr.Backend do
806815
|> Map.get(:delimiters)
807816

808817
defp quote_marks_for(unquote(locale_name)) do
809-
marks = unquote(Macro.escape(delimiters))
810-
# if !is_map(marks.quotation_start) do
811-
# IO.inspect marks.quotation_start, label: "Quote start for #{unquote(locale_name)} is not a map"
812-
# end
813-
#
814-
# if !is_map(marks.quotation_end) do
815-
# IO.inspect marks.quotation_end, label: "Quote end for #{unquote(locale_name)} is not a map"
816-
# end
817-
marks
818+
unquote(Macro.escape(delimiters))
818819
end
819820

820821
ellipsis =

0 commit comments

Comments
 (0)