src/components/navigation-component.js
/**
   * Get a localized version of the navigation bar for the given route.
   *
   * @private
   * @instance
   * @param {string} routeName - The name of the current route.
   * @param {NavigationBar} navigationBar - The {@link NavigationBar} object to localize.
   * @returns {NavigationBar} A {@link NavigationBar} object with the IDs of buttons updated to
   * pertain to the given route.
   */
Get a localized version of the navigation bar for the given route.
@private
@instance
@param {string} routeName - The name of the current route.
@param {NavigationBar} navigationBar - The  NavigationBar object to localize.
@returns {NavigationBar} A  NavigationBar object with the IDs of buttons updated to
pertain to the given route.
Get a localized version of the navigation bar for the given route . @private @instance @param { string } routeName - The name of the current route . @param { NavigationBar } navigationBar - The NavigationBar object to localize . @returns { NavigationBar } A NavigationBar object with the IDs of buttons updated to pertain to the given route .
static _localizeNavigationBar (routeName, navigationBar) {
    return navigationBar ? {
      ...navigationBar,
      buttons: navigationBar.buttons
        ? navigationBar.buttons.map(button => ({ ...button, id: `${routeName}.${button.id}` }))
        : undefined
    } : {}
  }
static _localizeNavigationBar ( routeName , navigationBar ) { return navigationBar ? { ... navigationBar , buttons : navigationBar . buttons ? navigationBar . buttons . map ( button => ( { ... button , id : ` ${ routeName } ${ button . id } ` } ) ) : undefined } : { } }
Get a localized version of the navigation bar for the given route.
Get a localized version of the navigation bar for the given route .