Skip to content

Commit 579df03

Browse files
committed
add translation functions to home page for multilingual support
1 parent a779bfe commit 579df03

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

resources/lang/en/store.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@
2828
'product_name_not_available' => 'Product Name Not Available',
2929
'featured_products' => 'Featured Products',
3030
'view_all' => 'View All',
31+
// Why Choose Us section
32+
'why_choose_us' => 'Why Choose Us',
33+
'fast_delivery_title' => 'Fast Delivery',
34+
'fast_delivery_text' => 'We deliver your orders quickly and safely, right to your doorstep.',
35+
'customer_support_title' => 'Customer Support',
36+
'customer_support_text' => 'Our support team is always here to assist you anytime, anywhere.',
37+
'trusted_worldwide_title' => 'Trusted Worldwide',
38+
'trusted_worldwide_text' => 'Thousands of satisfied customers, excellent reviews, and high ratings.',
39+
'ten_years_services_title' => '10 Years Services',
40+
'ten_years_services_text' => 'Over 10 years of trusted service delivering quality and satisfaction.',
3141
],
3242

3343
'product_detail' => [

resources/views/themes/xylo/home.blade.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,16 @@
162162

163163
<section class="why-choose-us py-5 animate-on-scroll">
164164
<div class="container">
165-
<h1 class="sec-heading text-start mb-5">Why Choose Us</h1>
165+
<h1 class="sec-heading text-start mb-5">{{ __('store.home.why_choose_us') }}</h1>
166166
<div class="row">
167167
<!-- Feature Box 1 -->
168168
<div class="col-md-3">
169169
<div class="feature-box text-start">
170170
<div class="feature-icon">
171171
<img src="https://i.ibb.co/WNQXhLnP/choose-icon1.png" alt="">
172172
</div>
173-
<h3>Fast & Secure Delivery</h3>
174-
<p>We deliver your orders quickly and safely, right to your doorstep.</p>
173+
<h3>{{ __('store.home.fast_delivery_title') }}</h3>
174+
<p>{{ __('store.home.fast_delivery_text') }}</p>
175175
</div>
176176
</div>
177177
<!-- Feature Box 2 -->
@@ -180,8 +180,8 @@
180180
<div class="feature-icon">
181181
<img src="https://i.ibb.co/FkmgGPrr/choose-icon2.png" alt="">
182182
</div>
183-
<h3>Customer Support</h3>
184-
<p>Our support team is always here to assist you anytime, anywhere.</p>
183+
<h3>{{ __('store.home.customer_support_title') }}</h3>
184+
<p>{{ __('store.home.customer_support_text') }}</p>
185185
</div>
186186
</div>
187187
<!-- Feature Box 3 -->
@@ -190,8 +190,8 @@
190190
<div class="feature-icon">
191191
<img src="https://i.ibb.co/CffNqX9/choose-icon3.png" alt="">
192192
</div>
193-
<h3>Trusted Worldwide</h3>
194-
<p>Thousands of satisfied customers excellent reviews & high ratings.</p>
193+
<h3>{{ __('store.home.trusted_worldwide_title') }}</h3>
194+
<p>{{ __('store.home.trusted_worldwide_text') }}</p>
195195
</div>
196196
</div>
197197
<!-- Feature Box 4 -->
@@ -200,8 +200,8 @@
200200
<div class="feature-icon">
201201
<img src="https://i.ibb.co/XPvjQGG/choose-icon4.png" alt="">
202202
</div>
203-
<h3>10 Years Services</h3>
204-
<p>Over 10 years of trusted experience delivering quality and customer satisfaction.</p>
203+
<h3>{{ __('store.home.ten_years_services_title') }}</h3>
204+
<p>{{ __('store.home.ten_years_services_text') }}</p>
205205
</div>
206206
</div>
207207
</div>

0 commit comments

Comments
 (0)