mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 01:05:47 +08:00
DEV: Fix i18n deprecation warnings
This commit is contained in:
parent
d35120946c
commit
92b2448500
@ -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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user