DEV: Fix i18n deprecation warnings

This commit is contained in:
Gerhard Schlager 2020-08-03 15:57:29 +02:00
parent d35120946c
commit 92b2448500
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,8 @@
class I18nInterpolationKeysFinder
def self.find(text)
keys = text.scan(Regexp.union(I18n::INTERPOLATION_PATTERN, /\{\{(\w+)\}\}/))
pattern = Regexp.union([*I18n.config.interpolation_patterns, /\{\{(\w+)\}\}/])
keys = text.scan(pattern)
keys.flatten!
keys.compact!
keys.uniq!