You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importReactfrom'react';importImgfrom'react-optimized-image';importuseTranslationfrom'next-translate/useTranslation';constIndex=()=>{const{ t }=useTranslation();return(<div><Imgsrc={require(`../public/images/${t('common:connect-all-data-sources-image')}`)}/></div>)}
but i get some errors:
(node:21318) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 uncaughtException listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
(node:21318) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 unhandledRejection listeners added to [process]. Use emitter.setMaxListeners() to increase limit
Is it possible to use this package to optimize images with the localization package? If yes, tell me another way, what I am doing wrong, but if not, I would like to understand the reason, because this is what communities of programmers are for.
Thank you in advance for answering
The text was updated successfully, but these errors were encountered:
Svyatoslav16
changed the title
Импорт картинок с использованием пути из файлов локализации
Import of images using the path from localization files
Nov 6, 2020
I'm tried require image with locale file in json
RU file with locales
EN file with locales
/pages/index.jsx
but i get some errors:
Is it possible to use this package to optimize images with the localization package? If yes, tell me another way, what I am doing wrong, but if not, I would like to understand the reason, because this is what communities of programmers are for.
Thank you in advance for answering
The text was updated successfully, but these errors were encountered: