Is there any way i can pass a custom path for the i18next
call? It searches for the locales
folder in the site root. But if i'm using it in a WordPress plugin, i must pass a custom path with my plugin folder url, due wordpress structure.
I don't know of a way... but why would you want to? WordPress itself provides a way to localize JS through wp_localize_script() .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.