Recursively walks a Menu template and fills in label for any item that
has a role but no explicit label, using i18next translations with an
English fallback. Items that already set label are left untouched, so
you can mix manually-labeled and role-based items freely.
Does not mutate the input template — returns a new array/tree.
Recursively walks a Menu template and fills in
labelfor any item that has arolebut no explicitlabel, using i18next translations with an English fallback. Items that already setlabelare left untouched, so you can mix manually-labeled and role-based items freely.Does not mutate the input template — returns a new array/tree.