https://bugzilla.wikimedia.org/show_bug.cgi?id=50431

--- Comment #16 from Krinkle <[email protected]> ---
For now this is up to the client side to handle, which realistically means it
won't be handled (current language > en > nothing).


For the future I intend to have the templatedata API take a parameter for
language code and resolve it on the server side. For three reasons:

* On wikis where there is more than 1 language commonly used (which is the
whole point of this bug and where it is relevant, since if there is only 1
language, the wiki author can just specify { "description": "Text." } without
lang-codes)..., on those wikis there will be more than 1 language defined. This
will result in a large blob of JSON being transferred to e.g. VisualEditor for
each template which is quite a lot of data.

* Even so, it would then still require the client-side to have knowledge of all
of this and process it. Which involves a lot of language data being send to the
client, a lot of translations being sent to the client, and the then client
having to do all the computation for it. We can solve this the same way we
solved it in ResourceLoader; We'll still cache it, but fragment it by language
code based on request context.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to