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.
|
||||
* Labels are already translated by the backend via t().
|
||||
* Labels are resolved server-side (resolveText) for the request language.
|
||||
*/
|
||||
function _navigationItemToTreeNode(item: NavigationItem): TreeNodeItem {
|
||||
return {
|
||||
|
|
@ -78,7 +78,7 @@ function _staticItemsToTreeNode(
|
|||
|
||||
/**
|
||||
* 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 {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
* useNavigation Hook
|
||||
*
|
||||
* Fetches the navigation structure from the Navigation API.
|
||||
* Backend provides blocks with German base texts as labels (i18n keys).
|
||||
* The UI translates them via t().
|
||||
* Static nav items and feature view labels are resolved server-side for the
|
||||
* request language (resolveText). User-defined mandate/instance names are raw.
|
||||
*
|
||||
* API: GET /api/navigation
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue