fixed instance nav labels i18n
This commit is contained in:
parent
19a2a90f01
commit
1741cc1a0d
2 changed files with 4 additions and 4 deletions
|
|
@ -47,7 +47,7 @@ type NavTranslateFn = (key: string, params?: Record<string, string | number>) =>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert a NavigationItem (from static block) to TreeNodeItem.
|
* Convert a NavigationItem (from static block) to TreeNodeItem.
|
||||||
* Labels are already translated by the backend via t().
|
* Labels are resolved server-side (resolveText) for the request language.
|
||||||
*/
|
*/
|
||||||
function _navigationItemToTreeNode(item: NavigationItem): TreeNodeItem {
|
function _navigationItemToTreeNode(item: NavigationItem): TreeNodeItem {
|
||||||
return {
|
return {
|
||||||
|
|
@ -78,7 +78,7 @@ function _staticItemsToTreeNode(
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert a FeatureView to TreeNodeItem.
|
* Convert a FeatureView to TreeNodeItem.
|
||||||
* View labels are already translated by the backend.
|
* View labels are resolved server-side (resolveText) for the request language.
|
||||||
*/
|
*/
|
||||||
function _featureViewToTreeNode(view: FeatureView): TreeNodeItem {
|
function _featureViewToTreeNode(view: FeatureView): TreeNodeItem {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
* useNavigation Hook
|
* useNavigation Hook
|
||||||
*
|
*
|
||||||
* Fetches the navigation structure from the Navigation API.
|
* Fetches the navigation structure from the Navigation API.
|
||||||
* Backend provides blocks with German base texts as labels (i18n keys).
|
* Static nav items and feature view labels are resolved server-side for the
|
||||||
* The UI translates them via t().
|
* request language (resolveText). User-defined mandate/instance names are raw.
|
||||||
*
|
*
|
||||||
* API: GET /api/navigation
|
* API: GET /api/navigation
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue