examples icon indicating copy to clipboard operation
examples copied to clipboard

Localization problems

Open FabrizioRicciarelli opened this issue 1 year ago • 2 comments
trafficstars

Hallo, we've purchased the enterprise version.

Following the example you provided (https://github.com/react-pdf-viewer/examples/blob/main/localization/LocalizationExample.tsx) and trying to apply a different locale than the default one, we're experiencing some problems:

  1. when I try to use the locale it_IT (we are frome Rome, Italy), most of the menu items/tooltips are correct but some menu items, especially those of the "More Actions" menu are completely missing (blank); the missing items are "Page scrolling", "Single page", "Dual page", "Dual page with cover" (and probably some others: not yet checke all the component's items)

  2. when I try the same, but with the locale en_US, the problem remains (same place "More Actions": missing items)

  3. when I try to alter the localization file (any of the node_modules/@react-pdf-viewer/locales/lib/xy_XY.json files) and I recompile my app, the new contents are not applied, nor if I clear the browser's cache or I change the browser, say Firefox instead of Chrome) the contents remain exactly the same as if I left the locale files untouched.

Waiting for a kind answer

FabrizioRicciarelli avatar Sep 09 '24 11:09 FabrizioRicciarelli

any news on this one? Seems like its broken even in the localization example

Image

khizar-adacta avatar Jan 21 '25 23:01 khizar-adacta

+1 same problem for custom i18n using

{
  ...,
  viewModes: {
    SinglePage: 'Singola pagina',
    DualPage: 'Due pagine',
    DualPageWithCover: 'Due pagine con copertina',
  },
  ...
}

results into empty

hdev-sec avatar Aug 20 '25 08:08 hdev-sec