-
Notifications
You must be signed in to change notification settings - Fork 178
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
WIP feat: Implement slug solution #120
base: master
Are you sure you want to change the base?
Conversation
Hi, I've tested and so far it works great, something I've noticed is that on the translated url the last trailing slash is missing while in the original remains. |
hey @Jno21, good job! Since the creator of the plugins seems to be permanent offline, have you considered creating your own version of this plugin with this slug functionality? It would be really awesome to easily implement this feature! |
Hi, Well you can technically use my branch as plugin. I am going to do a README.md when I have a little time to explain how to do everything :) |
I could, but I'm little confused how to implement it, so it would be awesome if you put some informations in README.md :) Please let us know when you do it :D |
Would you mind sharing how you implemented it? I'm struggling so far. Thank you! |
Hey, sorry didn't have much time so far. I will try to update my branch as soon as I can with everything. Here a fast explanation on how to install it: Keep me update if it is good for you. |
Thanks @Jno21 It works perfectly. I had not realized that I also had to create a Thanks again! |
@Jno21 - your solution isn't working for nested routes, eg: |
Hi ! For the nested routes, I have no clue since it has been 2 years. Unfortunately I don't think I will have time to patch this and it seems that this project has not been active since a while. Is there other alternative nowadays ? |
feat: Implement slug solution to rename your URLs depending of the language
This feature will allow users to be able to change the url name depending of the language use.
Example:
How to use it ?
Imagine some pages:
Create or modify your language ressource file example:
src/int/fr.json
And use your link like usual:
What's missing
The Object slugs containing all the differents slug by language on the current page is not accesible via useIntl().
It should be accesible via context tho.
TODO
In another PR I will try to see if I can modify the wrapper to inject directly in the the good alternate link for SEO purpose.
So this is a WIP, it needs to be tested correctly.
So test it, and come back to me if there is a bug / problem related to this implementation, when everything is validated that would be a great feature to this product !