-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update content of /api/*
#56
Comments
It's a known problem with static sites that require the CLI to build first all the translations... This is because when you execute the "dev": "next-translate && next dev", The In order to work in the future with static sites + hotreloading in dev we want to replace the |
@aralroca yea, that sound's great. Now that you are talking about it. It was confusing me a little, that you focus so much on static sites in the docs. My site is not really static at all, but the library still works fine without having a server. I think the end goal should be to inject the translations without the need of a cli step. Currently there is just no good solution I know off beside this lib for internationalizing next.js in a serverless context |
I think that we can easily fix this by just exporting everything from the original file instead of copy the content. I'm going to change the milestone of this to 0.15.0 in order to prioritize this 🙂 |
Hi! That works nicely for me, this copy all data in api folder, all files even in subfolder : cli/builder.js
|
@bilLkarkariy your proposal is fixing another issue than this one! This issue is about hot reloading on file changes. By the way! Thanks for your contribution. I'm going to add it to the code base. |
@bilLkarkariy your code is introduced into the code base by #138, it's available on > |
Oh ! Thank you very much !!! |
This will be automatically fixed after #303 (1.0.0) |
Closing this. Already implemented on 1.0.0-canary.1. The 1.0 will be released approximately 1-2 weeks. 😊 |
Hi @aralroca ! Thanks! |
@bilLkarkariy yes, you are welcome :) ! Please @all-contributors add @bilLkarkariy for code |
I've put up a pull request to add @bilLkarkariy! 🎉 |
@bilLkarkariy already added in canary branch: https://github.com/vinissimus/next-translate/tree/canary |
It works, that the
/api
routes are ignored, however the content inside there is not updated and I need to delete the folder manually.Same applies for the
_app.tsx
fileThe text was updated successfully, but these errors were encountered: