You are working on the hyperswitch repository (Rust payment processing system).…
- User
You are working on the hyperswitch repository (Rust payment processing system).
REPOSITORY SETUP:
- Repository: juspay/hyperswitch
- Working directory: ./repos/hyperswitch_pool_7 (already cloned)
- Base commit: a0c2a6bc823fdeac193875a04ea04e7d9a81cbc2
- Task ID: juspay__hyperswitch-8934
- Version: v1.116.0
TASK DESCRIPTION: Bug: Update traditional chinese locale for payent link expired
Update traditional chinese locale for payent link expired
DETAILED CONTEXT & HINTS:
Type of Change
- Bugfix
- New feature
- Enhancement
- Refactoring
- Dependency updates
- Documentation
- CI/CD
Description
We need to update traditional chinese locale for payment link expired.
Additional Changes
- This PR modifies the API contract
- This PR modifies the database schema
- This PR modifies application configuration/environment variables
Motivation and Context
Raised by the merchant to update the locale to the correct one as shared by them.
How did you test it?
use below curl for payment link create and wait for 60 secs for payment link to get expired:
curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: ***' \ --header 'Accept-Language: zh-Hant' \ --data '{ "amount": 10, "setup_future_usage": "off_session", "currency": "EUR", "payment_link": true, "session_expiry": 60, "return_url": "https://google.com", "payment_link_config": { "theme": "#14356f", "logo": "https://logo.com/wp-content/uploads/2020/08/zurich.svg", "seller_name": "Zurich Inc." } }'Checklist
- I formatted the code
Assistant
I need to address a bug related to updating the Traditional Chinese locale for payment link expired messages. Let me start by understanding the codebase structure and locating the relevant files.
First, I'll explore the repository structure to understand where locale files might be located:
Assistant
I see there's a
zh.ymlfile which likely corresponds to Chinese locales. Let me also search for payment link related code and "expired" messages to understand the context better.Assistant
Let me search more broadly for "expired" or "payment link" related terms:
Assistant
Let me search for payment link related terms in Rust files:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.