Wp_localize_script in Blade

Where is the best place for using wp_localize_script(...) when using Blade (Sage 9.x)?

Is it not working? What have you tried?

I am not even sure where it belongs. In router action? In blade template file itself, as PHP code? In a separate action? wp_localize_script(...) should only be used on one particular page.

Edit: The question is similar to ‘where in blade template should page-specific scripts be registered/enqueued?’.

This should be no different in Sage 9/Blade versus other themes. There’s existing threads here on localizing scripts