In register_nav_menu() function is possible to pass the second parameter inside wp l10n function:

register_nav_menu( 'primary', __( 'Primary Menu', 'theme-slug' ) );

but how to localize the menu items?


Get a WPML plugin - https://wpml.org/

Seriously, get it - it's the most complete solution for multilingual WP site. You can write your own code to translate menu items, but it is not worth it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.