Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x]: The content of the prefecture in the address field is not displayed in Japanese. #15668

Closed
mersy opened this issue Sep 5, 2024 · 3 comments
Assignees
Labels

Comments

@mersy
Copy link

mersy commented Sep 5, 2024

What happened?

Description

When the user's language setting is set to Japanese and an address is registered, only the prefecture is displayed in English. The country is displayed in Japanese. Is it by design that the prefecture is not displayed in Japanese?

The following issue seems to be similar to the current situation.
#15591

Steps to reproduce

  1. set up address field
  2. set address in entry
  3. show addres by card

Expected behavior

While the prefecture can be displayed and selected in Japanese when choosing it, the prefecture is not displayed in Japanese on the card.

Actual behavior

CP

When the user's language setting is set to Japanese and an address is registered, only the prefecture is displayed in English. The country is displayed in Japanese.

20240905-105846

Is it by design that the prefecture is not displayed in Japanese?

When the user's language setting is set to English, both the prefecture and the country are displayed in English.
20240905-105928

Front-end

When the site's language setting is set to Japanese, the country is displayed in Japanese, but the prefecture is displayed in English. When set to English, both the country and the prefecture are displayed in English.

language setting : Japanese
20240905-110153

I would like it to display "東京都" instead of "Tokyo."

language setting : English
20240905-110113

Template

{% set addresses = entry.testAddress.all() %}
<ul>
  {% for address in addresses %}
    <li>{{ address|address }}</li>
  {% endfor %}
</ul>

Craft CMS version

5.4.1

PHP version

8.2.23

Operating system and version

Linux 3.10.0-957.27.2.el7.x86_64

Database type and version

MySQL 8.0.35

Image driver and version

Imagick 3.7.0 (ImageMagick 6.7.8-9)

Installed plugins and versions

  • CKEditor 4.2.0
  • Multi Translator 2.7.0
@i-just
Copy link
Contributor

i-just commented Sep 6, 2024

Hi, thanks for reporting! I raised a PR for this.

@mersy
Copy link
Author

mersy commented Sep 6, 2024

Thanks!! @i-just

@brandonkelly
Copy link
Member

Craft 4.12.1 and 5.4.2 are out with that fix! Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants