Skip to content

カート商品削除の確認メッセージを多言語化対応#6592

Open
dk-umebius wants to merge 1 commit intoEC-CUBE:4.3from
U-Mebius:fix/cart_delete_confirmation_i18n
Open

カート商品削除の確認メッセージを多言語化対応#6592
dk-umebius wants to merge 1 commit intoEC-CUBE:4.3from
U-Mebius:fix/cart_delete_confirmation_i18n

Conversation

@dk-umebius
Copy link
Contributor

@dk-umebius dk-umebius commented Jan 20, 2026

ハードコードされていた日本語メッセージを翻訳フィルタを使用するように変更

  • 変更前: data-message="カートから商品を削除してもよろしいですか?"
  • 変更後: data-message="{{ 'front.cart.delete__confirm'|trans }}"

概要(Overview・Refs Issue)

Fixes #6585

方針(Policy)

すでにmessagesファイルにキーが存在したので使用

テスト(Test)

画面で確認
スクリーンショット 2026-01-21 8 39 45

スクリーンショット 2026-01-21 8 38 51

マイナーバージョン互換性保持のための制限事項チェックリスト

  • 既存機能の仕様変更はありません
  • フックポイントの呼び出しタイミングの変更はありません
  • フックポイントのパラメータの削除・データ型の変更はありません
  • twigファイルに渡しているパラメータの削除・データ型の変更はありません
  • Serviceクラスの公開関数の、引数の削除・データ型の変更はありません
  • 入出力ファイル(CSVなど)のフォーマット変更はありません

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか
    • 権限を超えた操作が可能にならないか
    • 不要なファイルアップロードがないか
    • 外部へ公開されるファイルや機能の追加ではないか
    • テンプレートでのエスケープ漏れがないか

ハードコードされていた日本語メッセージを翻訳フィルタを使用するように変更

- 変更前: data-message="カートから商品を削除してもよろしいですか?"
- 変更後: data-message="{{ 'front.cart.delete__confirm'|trans }}"

翻訳キーは messages.ja.yaml および messages.en.yaml に既存
Copilot AI review requested due to automatic review settings January 20, 2026 23:43
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #6585 by internationalizing a hardcoded Japanese confirmation message for cart item deletion. The change replaces a hardcoded Japanese string with a translation key that already exists in the messages files.

Changes:

  • Replaced hardcoded Japanese confirmation message "カートから商品を削除してもよろしいですか?" with translation filter usage {{ 'front.cart.delete__confirm'|trans }}

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.70%. Comparing base (1cd4dfc) to head (cd80c32).
⚠️ Report is 14 commits behind head on 4.3.

Additional details and impacted files
@@            Coverage Diff             @@
##              4.3    #6592      +/-   ##
==========================================
- Coverage   82.70%   82.70%   -0.01%     
==========================================
  Files         480      480              
  Lines       26507    26507              
==========================================
- Hits        21923    21922       -1     
- Misses       4584     4585       +1     
Flag Coverage Δ
E2E 82.70% <ø> (-0.01%) ⬇️
Unit 82.70% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

カート商品削除確認メッセージが多言語化されていない

1 participant