@Kusal @MarekTokarski (not sure who to tag about AUI / AJS stuff…)
I found a breaking-change in javascript-API AJS.I18n.get(pluginKey, ...)
(not getText()
, but really get()
):
With this API we dynamically fetch I18n-texts for our app and use it in our front-end JS-code. This is still working with Confluence 8.9.4, but not with 9.0.0-rc1: AJS.I18n.get
is not there, so the whole call fails.
It that intentional? Or should that API still be available in 9.x? If not, then what’s the suggested alternative?
I do not see any reference to this in Preparing for Confluence 9.0 or AUI’s changelog (not sure if this comes from AUI or from Confluence itself).
For reference here what is contained in AJS.I18n
in 8.9.4 and 9.0.0-rc1:
8.9.4:
> AJS.I18n
Object { keys: {}, get: get(c, h, j), load: load(c), getText: getText(c, a) }
9.0.0-rc1:
> AJS.I18n
Object { km: Map(0), format: h(m, r), getText: getText(a, c), keys: {…} }