Jump to content

Module talk:I18n

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Awesome Aasim (talk | contribs) at 06:33, 25 September 2024 (Awesome Aasim moved page Module talk:Sandbox/Awesome Aasim/I18n to Module talk:I18n: This is needed for Docbunto at this time, also this is a lot more robust than the previous module that got deleted so G4 probably does not apply). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Request for a more resilient check

This module does the check next(res) ~= nil to see if the res table is not empty, and then references res.i18n assuming that that key exists and contains a table. However, as we have seen recently, this causes errors if that assumption fails. A more resilient check would be type(res.i18n) == "table". Thayts ••• 21:19, 30 September 2019 (UTC)[reply]