discourse/app/assets/javascripts/locales
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
..
ar.js.erb
be.js.erb
bg.js.erb
bs_BA.js.erb
ca.js.erb
cs.js.erb
da.js.erb
de.js.erb
el.js.erb
en_GB.js.erb
en.js.erb
es.js.erb
et.js.erb
fa_IR.js.erb
fi.js.erb
fr.js.erb
gl.js.erb
he.js.erb
hr.js.erb FEATURE: Add Croatian language (#17130) 2022-06-18 00:18:22 +02:00
hu.js.erb
hy.js.erb
i18n.js DEV: Raise an error in test env when I18n interpolate argument is missing (#23527) 2023-09-13 10:53:48 +08:00
id.js.erb
it.js.erb
ja.js.erb
ko.js.erb
lt.js.erb
lv.js.erb
nb_NO.js.erb
nl.js.erb
pl_PL.js.erb
pt_BR.js.erb
pt.js.erb
ro.js.erb
ru.js.erb
sk.js.erb
sl.js.erb
sq.js.erb
sr.js.erb
sv.js.erb
sw.js.erb
te.js.erb
th.js.erb
tr_TR.js.erb
uk.js.erb
ur.js.erb
vi.js.erb
zh_CN.js.erb
zh_TW.js.erb