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
..
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2023-08-31 11:49:35 +02:00
2023-06-16 12:08:26 +10:00
2023-05-02 14:10:53 +01:00
2023-08-31 11:49:35 +02:00
2023-07-26 11:43:46 -04:00
2020-12-01 15:31:26 -03:00
2023-05-02 14:10:53 +01:00
2023-06-22 22:54:46 +02:00
2023-07-25 11:00:02 -04:00
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2022-07-19 10:27:10 +08:00
2022-11-14 11:09:57 -07:00
2022-05-13 14:58:26 -05:00
2021-09-23 14:52:34 -04:00
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2022-07-19 10:27:10 +08:00
2020-12-01 15:31:26 -03:00
2022-06-17 09:43:13 -05:00
2023-08-11 09:53:44 +01:00
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2021-11-12 14:04:48 +01:00
2022-07-12 21:38:17 +02:00
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2023-08-21 14:28:16 +02:00
2021-07-13 19:22:39 +03:00
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2023-05-29 14:47:18 -07:00
2022-12-05 18:25:30 +02:00
2020-09-04 13:42:47 +02:00
2021-08-23 10:44:19 +02:00
2020-09-04 13:42:47 +02:00
2023-02-13 09:24:47 +11:00
2022-07-17 20:48:36 +02:00
2023-07-25 11:00:02 -04:00
2023-07-25 11:00:02 -04:00
2023-07-25 11:00:02 -04:00
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2020-12-01 15:31:26 -03:00
2023-09-13 10:53:48 +08:00
2021-09-24 11:52:07 -04:00
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2022-05-13 14:58:26 -05:00
2020-09-04 13:42:47 +02:00
2023-08-17 18:07:06 +02:00
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2021-08-23 10:44:19 +02:00
2023-08-31 11:49:35 +02:00
2023-05-02 14:10:53 +01:00
2021-08-23 10:44:19 +02:00
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2023-08-31 11:49:35 +02:00
2023-05-02 14:10:53 +01:00
2023-05-08 14:56:46 -04:00
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2023-03-08 14:26:20 +08:00
2022-03-31 12:57:27 +11:00
2022-11-17 18:44:23 +01:00
2020-09-04 13:42:47 +02:00
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2021-02-19 13:46:02 +01:00
2022-02-02 23:41:42 +01:00
2021-05-20 16:00:45 +10:00
2022-02-14 13:43:52 +02:00
2020-09-04 13:42:47 +02:00
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2020-12-08 13:21:02 -05:00
2023-05-02 14:10:53 +01:00
2023-05-02 14:10:53 +01:00
2023-03-29 11:49:47 +03:00
2023-07-25 09:04:28 +08:00