MAIDR JavaScript API
    Preparing search index...

    Function getLocaleRevision

    • A counter that advances every time what t would render changes: on a locale switch, and when the active locale's pack registers.

      The locale alone is not enough for a subscriber to key on. A pack arriving for the locale already active changes every message and leaves the locale string as it was, so a React subscription keyed on the locale would see nothing to re-render.

      Returns number

      The current revision