Skip to content

Example for parameterized routes #9

Closed as not planned
Closed as not planned

Description

@Wirone

I've just read your post (thanks!) and I'm wondering if your approach supports parameters in localized paths. If so, how to achieve it?

Example in this demo app would be great.

Activity

  1. vlaja commented on Sep 22, 2020

    @vlaja
    Owner

    Hey man.

    Can you give me an example of what exactly you need in order to avoid any confusion. Are we talking about query params?

    If this is the case, it wasn't the intention of the initial example, but it can be supported. I do plan on creating a react package around this, to account for such requirements.

  2. Wirone commented on Sep 23, 2020

    @Wirone
    Author

    @vlaja I'm talking about route params. In your demo there are only simple routes, I would like to know if it's possible to handle translation like this:

    • EN: /book/:id/reviews
    • DE: /de/buch/:id/bewertungen

    where :id is not translatable, is the same for all languages.

  3. DimitriDaSilva commented on Dec 6, 2021

    @DimitriDaSilva

    Agreed. Handling route params would make this great approach viable for more complex projects.

    Has anyone found a way to implement it here?

  4. vlaja commented on Dec 6, 2021

    @vlaja
    Owner

    Hi @Wirone @DimitriDaSilva sorry, as this was an article support repository I have set it aside for a while due to other obligations.

    I should have some time in the near future to try to address this, and probably convert this into a library.

    Feel free to leave your comments or suggestions about the requirements you want to support, so I can get a better feel of how to make this more flexible.

    Also, appreciate the comments.

  5. DimitriDaSilva commented on Dec 6, 2021

    @DimitriDaSilva

    Thanks @vlaja! 2 years have passed since your article and internationalization still seems to be a pain to implement. So thanks for the article and the example, it definitely helps.

    Okay, I'll try to implement route params based on what you did and I'll give you a feedback!

  6. Wirone commented on Jun 23, 2022

    @Wirone
    Author

    @vlaja any news on this 😅?

  7. self-assigned this
    on Jun 23, 2022
  8. pinned this issue on Jun 23, 2022
  9. vlaja commented on Jun 23, 2022

    @vlaja
    Owner

    @Wirone Unfortunately not :(

    I am pinning this issue and will try to help you out with this. I really appreciate you still finding this relevant and do apologize for simply not finding time to tackle this.

    In the meantime, I've mostly moved to using next.js for my private projects, and also inside our company, and they do actually have plugins that do address this in combination with next.js/@reach-router, which might be worth looking into from your side as well.

  10. Wirone commented on Jun 23, 2022

    @Wirone
    Author

    Not a problem @vlaja 🙂 I was just clearing my list of issues/PRs yesterday, this is not urgent for me since I don't work with frontend currently. But may be worth to do it anyway 🙂

  11. Wirone commented on Nov 19, 2022

    @Wirone
    Author

    Don't need it anymore and since I don't want it on "my issues" list, I'm going to close it now.

    Anyone interested in this: please file new issue and reference this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions