Query About label shown in frontstages #1205
-
In the above viewer everywhere there is shown label like cube.left, cube.right, snapModeField.snapMode etc Is there any global solution for the same or something that I may be missing. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The text that is being displayed are keys to look up localized strings. Since the keys are displayed, this means that the app is either not delivering the localized strings, typically under the locales folder, or the localization is not being properly initialized. See https://github.com/imodeljs/itwin-viewer/blob/6a053db816563d7e48a71351f37a0a1effd6feb2/packages/modules/itwin-viewer-react/src/services/Initializer.ts#L245-L246 to see an example of how to initialize the localization. You can also review the network tab in the Chrome debugger to see if files like UiFramework.json are being requested and to see if the response contains actual JSON data. |
Beta Was this translation helpful? Give feedback.
The text that is being displayed are keys to look up localized strings. Since the keys are displayed, this means that the app is either not delivering the localized strings, typically under the locales folder, or the localization is not being properly initialized. See https://github.com/imodeljs/itwin-viewer/blob/6a053db816563d7e48a71351f37a0a1effd6feb2/packages/modules/itwin-viewer-react/src/services/Initializer.ts#L245-L246 to see an example of how to initialize the localization. You can also review the network tab in the Chrome debugger to see if files like UiFramework.json are being requested and to see if the response contains actual JSON data.