mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:23:00 +08:00
Add test for load plurals before precompile
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user