Skip to content

Missing time zone i18n for Rails 8.1.x zones America/Nuuk and America/Asuncion #421

@ngobin

Description

@ngobin

Rails 8.1.x / Activesupport 8.1.x adds/renames IANA identifiers in ActiveSupport::TimeZone::MAPPING to include America/Nuuk and America/Asuncion.

When using Worldwide’s timezone translations with Rails’ time_zone_options_for_select (as shown in Worldwide readme), upgrading from Rails/ActiveSupport 8.0.4 → 8.1.2 raises missing translation errors because Worldwide does not include keys for these identifiers.

Environment

  • Rails version 8.1.2
  • Worldwide version 1.21.1
  • config.i18n.raise_on_missing_translations = true
<%= form.ui_select :timezone,
      time_zone_options_for_select(
        @shop.timezone.name,
        nil,
        Worldwide::TimeZone
      ),
      {},
      label: t('shop_identity.views.admin.settings.general.timezone_label') %>

With raise_on_missing_translations, this emits errors after upgrading from Activesupport 8.0.4 -> 8.1.2.

ActionView::Template::Error: Translation missing: en.timezones.America/Asuncion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions