You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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:
What is the right way to translate? Or how should I approach this?
The text was updated successfully, but these errors were encountered: