-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi there,
First of all, thanks a lot for your wonderful plugin!!!
I am developing a website with Wordpress as a backend, and using react for the front. Obviously I have all my data called through the API.
Now, the data is coming translated and everything, which is perfect. except for my menus... It seems like through the API the menus are not translated (I am using Rest API menu v2).
Now I am trying to modify the plugin to translate the said menus, but I fail at it, as I don't know how to translate them, and if it is possible.
This is what I did so far:
if ( class_exists( 'TRP_Translate_Press' ) ) {
$trp = TRP_Translate_Press::get_trp_instance();
// This does't work as $translation_render is protected
$trp->translation_render->process_strings( ['string_to_translate'], 'fr');
};
What is the right way to translate? Or how should I approach this?
asfo
Metadata
Metadata
Assignees
Labels
No labels