Skip to content

App status: announcements in more than one language

Latest

Choose a tag to compare

@uatisdeproblem uatisdeproblem released this 30 Jul 13:29

New features

  • Common. App status: announcements in more than one language. A message in status.json can now be a map of language to message, alongside the plain string it has always accepted:

    "messages": {
      "1.0.0": "Here is the **important** announcement for this version",
      "1.0.1": { "en": "You should update XYZ", "it": "Dovresti aggiornare XYZ" }
    }

    Each user reads their own language, falling back on the app's default. The two forms are interchangeable and can share the same file, so nothing has to change in existing projects. See the App status how-to.

Fixes

  • Common. App status: versions are compared as versions, not as text. minVersion and latestVersion were compared as strings, so 4.5.10 read as older than 4.5.5, and 4.10.0 as older than 4.9.0. On minVersion that meant a forced update silently not firing. They are now compared segment by segment as numbers, with missing parts counting as zero, so 4.6 and 4.6.0 are the same version.
  • Common. A status.json without the messages key no longer breaks the check. It threw a TypeError that check() swallowed into an empty status: the file looked fine while maintenance mode and forced update were quietly ignored.