Plugin Support
Praveen a11n
(@spraveenitpro)
Automattic Happiness Engineer
Hi There,
You can try this snippet, you can add it to your functions.php located within your theme, please feel free to modify the snippet. I also recommend to test this on a staging/dev site:
function my_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case ',' :
$translated_text = __( '،', 'woocommerce' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'my_text_strings', 20, 3 );
Thread Starter
Rahim
(@rahimvaziri)
Hi @spraveenitpro,
Thank you so much for the reply.
Unfortunately this code didn’t make any changes.
Have you ever tested this code on your end?
Regards.
Rahim
Plugin Support
AW a11n
(@slash1andy)
Automattic Happiness Engineer
Hey there!
I would recommend contributing your translation to WooCommerce core following this guide here: https://docs.woocommerce.com/document/woocommerce-localization/#section-2
That will enable all users in your language to use this.
Hopefully that helps! Have a great one!