Prevent show 18n keys on document initial load

WebViewer Version: 11.12

Do you have an issue with a specific file(s)?
Can you reproduce using one of our samples or online demos? No
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? Yes
Is your issue related to annotations? No

we are encountering an issue where i18n translation keys (e.g., “filePicker.dragAndDrop”, “action.browse”) are flashing/displayed briefly on the UI before the document and the actual localized text are fully loaded.

Could you please advise on the best practices to completely hide or prevent these i18n keys? Thanks

My Code:

WebViewer(

  {

    path: '/lib/webviewer',

    licenseKey: '',

    fullAPI: true,

    accessibleMode: true,

    defaultLanguage: 'en',

  },

  viewerRef.current

)

Hi there,

The translation keys for the text should be nearly immediate, is there a delay on your end?

You can try preloading WebViewer so it will be ready when you load the document:

Best regards,

Kevin