aralroca / next-translate-plugin

Next-translate plugin for i18n in Next.js 🌍 - Load page translations and use them in an easy way!
MIT License
30 stars 17 forks source link

Fix path for monorepos #2

Closed jporsay closed 1 year ago

jporsay commented 1 year ago

This commit applies the missed fixes from PR #945 on next-translate

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update [X] Bug fix [ ] New feature [ ] Other, please explain:

What changes did you make? (Give an overview)

This PR adds the missing fix from https://github.com/aralroca/next-translate/pull/945

This is required since we cannot assume that the project will be at the same level as the node_modules folder (common in NX).

Which issue (if any) does this pull request address?

https://github.com/aralroca/next-translate/pull/945

Is there anything you'd like reviewers to focus on?

aralroca commented 1 year ago

Thanks @jporsay !! 😊 I will release this as a patch version later (I'm not at home now).