Skip to content

Commit

Permalink
Merge pull request #38629 from code-dot-org/ha/sync-in-bubble-choice
Browse files Browse the repository at this point in the history
Collect strings from BubbleChoice sub-levels for translation
  • Loading branch information
hacodeorg committed Jan 25, 2021
2 parents bb2b5ce + 4de08b8 commit f5cff88
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/i18n/sync-in.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ def get_i18n_strings(level)
end
end

if level.is_a? BubbleChoice
i18n_strings["sublevels"] = {}
level.sublevels.map do |sublevel|
i18n_strings["sublevels"][sublevel.name] = get_i18n_strings sublevel
end
end

i18n_strings["contained levels"] = level.contained_levels.map do |contained_level|
get_i18n_strings(contained_level)
end
Expand Down

0 comments on commit f5cff88

Please sign in to comment.