mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
Revert "ensure locales are not overwritten"
breaking now
This commit is contained in:
parent
3f64a54898
commit
bfeb75a60f
@ -21,17 +21,5 @@ describe "i18n integrity checks" do
|
||||
end
|
||||
end
|
||||
|
||||
it "does not overwrite another language" do
|
||||
Dir["#{Rails.root}/config/locales/*.yml"].each do |f|
|
||||
locale = /.*\.([^.]{2,})\.yml$/.match(f)[1] + ':'
|
||||
IO.foreach(f) do |line|
|
||||
next if line.start_with? "#"
|
||||
next if line.start_with? "---"
|
||||
next if line.strip!.blank?
|
||||
line.should eq locale
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user