Skip to content

Commit

Permalink
fix: Translation on some pages were not working due to wrong text-dom…
Browse files Browse the repository at this point in the history
…ain (#2503)
  • Loading branch information
devAsadNur authored Jan 9, 2025
1 parent 8217a61 commit 9ae1575
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 63 deletions.
6 changes: 3 additions & 3 deletions assets/src/js/setup-wizard/commission/AdminCommission.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<template>
<div class="p-3">
<div class="mb-5">
<p class="!p-0 !m-0 !font-semibold" for="_subscription_product_admin_commission_type">{{__( 'Admin Commission type', 'dokan' )}}</p>
<p class="!p-0 !m-0 !font-semibold" for="_subscription_product_admin_commission_type">{{__( 'Admin Commission type', 'dokan-lite' )}}</p>
<div class="flex flex-col">
<select v-model="selectedCommission" id="_subscription_product_admin_commission_type" name="_subscription_product_admin_commission_type" class="select short">
<option v-for="(commissionData, key) in commissionTypes" :value="key">{{commissionData}}</option>
</select>
</div>
</div>
<div v-if="'category_based' === selectedCommission">
<p class="!p-0 !m-0 !font-semibold" for="_subscription_product_admin_commission_type">{{__( 'Admin Commission', 'dokan' )}}</p>
<p class="!p-0 !m-0 !font-semibold" for="_subscription_product_admin_commission_type">{{__( 'Admin Commission', 'dokan-lite' )}}</p>
<category-based-commission
:value="commission"
@change="onCategoryUpdate"
/>
</div>
<div v-else-if="'fixed' === selectedCommission">
<p class="!p-0 !m-0 !font-semibold" for="_subscription_product_admin_commission_type">{{__( 'Admin Commission', 'dokan' )}}</p>
<p class="!p-0 !m-0 !font-semibold" for="_subscription_product_admin_commission_type">{{__( 'Admin Commission', 'dokan-lite' )}}</p>
<combine-input
:value="fixedCommission"
v-on:change="fixedCOmmissionhandler"
Expand Down
2 changes: 1 addition & 1 deletion includes/Admin/WithdrawLogExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function set_total_rows( $total_rows ) {
public function get_default_column_names() {
return apply_filters(
'dokan_withdraw_log_export_columns', [
'id' => __( 'ID', 'dokan' ),
'id' => __( 'ID', 'dokan-lite' ),
'vendor_id' => __( 'Vendor ID', 'dokan-lite' ),
'store_name' => __( 'Store Name', 'dokan-lite' ),
'amount' => __( 'Withdraw Total', 'dokan-lite' ),
Expand Down
4 changes: 2 additions & 2 deletions src/admin/components/AddReverseWithdraw.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
:disabled="loading"
>
<img :src="loader" alt='' :class="loading ? 'is-loading' : 'not-loading'">
{{ __( 'Save', 'dokan' ) }}
{{ __( 'Save', 'dokan-lite' ) }}
</button>
</div>
</div>
Expand Down Expand Up @@ -350,7 +350,7 @@ export default {
paged: 1,
search: search
} ).done( ( response ) => {
self.allVendors = [ { vendorId: 0, store_name: self.__( 'Select vendor', 'dokan' ) } ].concat( response.map((item) => {
self.allVendors = [ { vendorId: 0, store_name: self.__( 'Select vendor', 'dokan-lite' ) } ].concat( response.map((item) => {
return {
vendorId: item.id,
store_name: item.store_name
Expand Down
4 changes: 2 additions & 2 deletions src/admin/pages/DummyData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export default {
let message = window.dokan_handle_ajax_error( jqXHR );
if ( message ) {
Swal.fire(
self.__( 'Something went wrong', 'dokan' ),
self.__( 'Something went wrong', 'dokan-lite' ),
message,
'error'
);
Expand Down Expand Up @@ -370,7 +370,7 @@ export default {
let message = window.dokan_handle_ajax_error( jqXHR );
if ( message ) {
Swal.fire(
self.__( 'Something went wrong', 'dokan' ),
self.__( 'Something went wrong', 'dokan-lite' ),
message,
'error'
);
Expand Down
Loading

0 comments on commit 9ae1575

Please sign in to comment.