In general, there is a params
key in the navigation to supply route parameters. It must contain an array of all values used in the route.
An example, for the route foo[/:bar]
you can have this navigation configuration:
array(
'label' => 'Foo',
'route' => 'foo-bar',
'params' => array('bar => 'baz'),
),
In your translation case, provide a params
key called lang
and than one will be used.
However you probably want to use the route match parameter for the language. If you are on the page from language zh
then the parameter is automatically zh
. Then you can use the use_route_match
.
array(
'label' => 'About',
'route' => 'about',
'use_route_match' => true,
),