Alan Guo Xiang Tan 038de393ed
DEV: Raise an error in test env when I18n interpolate argument is missing (#23527)
Why this change?

We have been bitten by bugs where tests are not catching missing
interpolate argument in our client side code because the JavaScript
tests are also using `I18n.translate` to assert that the right message
is shown. Before this change, `I18n.interpolate` will just replace the
missing interpolation argument in the final translation with some
placeholder. As a result, we ended up comparing a broken translation
with another broken translation in the test environment.

Why does this change do?

This change introduces the `I18n.testing` property which when set to
`true` will cause `I18n.translate` to throw an error when an interpolate
argument is missing. With this commit, we also set `I18n.testing = true`
when running qunit acceptance test.
2023-09-13 10:53:48 +08:00
..
2015-05-12 16:16:10 +04:30
2017-02-24 11:31:21 +01:00
2016-06-01 15:25:21 +05:30
2014-05-01 11:00:53 -04:00
2018-08-13 01:02:35 +02:00
2013-03-25 18:35:38 +01:00
2017-02-24 11:31:21 +01:00
2018-03-06 20:51:41 +01:00
2018-07-16 18:11:38 +02:00
2015-02-09 20:46:31 +05:30