mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 18:26:25 +08:00
Add test for load plurals before precompile
This commit is contained in:
parent
ae81523aa5
commit
c964c5c0d5
@ -79,4 +79,9 @@ describe JsLocaleHelper do
|
|||||||
ctx.eval('I18n.messageFormat("simple_MF", {})').should =~ /COUNT/ # error
|
ctx.eval('I18n.messageFormat("simple_MF", {})').should =~ /COUNT/ # error
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'load pluralizations rules before precompile' do
|
||||||
|
message = JsLocaleHelper.compile_message_format('ru', 'format')
|
||||||
|
message.should_not match 'Plural Function not found'
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user