File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -115,10 +115,14 @@ def delete_key(key)
115
115
I18n . backend . reload!
116
116
end
117
117
118
- def reset
118
+ def reset_local_cache
119
119
@locale_cache = { }
120
120
@localization_key_object_cache = { }
121
121
@localization_object_cache = { }
122
+ end
123
+
124
+ def reset
125
+ reset_local_cache
122
126
localizations . clear
123
127
localization_keys . clear
124
128
load_all_translations
Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ class Engine < ::Rails::Engine
17
17
end
18
18
end
19
19
20
+ initializer 'lit.reloader' do |app |
21
+ config . to_prepare do
22
+ Lit . loader . cache . reset_local_cache if Lit . loader
23
+ end
24
+ end
25
+
20
26
initializer 'lit.migrations.append' do |app |
21
27
unless app . root . to_s . include? ( root . to_s )
22
28
config . paths [ 'db/migrate' ] . expanded . each do |expanded_path |
You can’t perform that action at this time.
0 commit comments