Portuguese langcode mismatch

Created on 13 January 2023, over 1 year ago
Updated 27 January 2023, over 1 year ago

Problem/Motivation

Portuguese langcode in drupal is "pt-pt". However in IntlDate's langcode=>locale mappings the langcode is "pt". Therefore in Portuguese language the dates come out in English.

Steps to reproduce

Enable Portuguese language.
Create a node in English with date output using intl_date.
Create a Portuguese translation
Open the translation

Expected output:
Portuguese date

Actual result:
English date

Proposed resolution

Change "pt" in the mapping to "pt-pt"

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Baysaa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024