Skip to content
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

Overriding registerRoutes (for multilingual support, etc.) #22

Open
greatislander opened this issue Aug 18, 2021 · 2 comments
Open

Overriding registerRoutes (for multilingual support, etc.) #22

greatislander opened this issue Aug 18, 2021 · 2 comments

Comments

@greatislander
Copy link

I'm looking at Arcanist for a project which needs to create multilingual routes to support different locales. For example, I'd need something like:

/en/forms/profile/1/about-me
/fr/formulaires/profil/1/a-propos

Is there a way to override the default registerRoutes method to handle multilingual routes? My project uses Laravel Multilingual Routes, but I think any solution to this use case in Arcanist should be as agnostic as possible. Perhaps an option might be to allow an integrator to bypass Arcanist's automatic registration of routes and document the process for creating all necessary routes independently in a routes/arcanist.php file or something like that.

@greatislander
Copy link
Author

Looking at this (#6 (comment)) it seems like the commentor's proposed approach for LiveWire would also involve bypassing Arcanist's route registration. So I guess that's my question—what would be the best way to do so?

Thanks!

@ksassnowski
Copy link
Collaborator

This currently isn't supported, unfortunately. The route registration is fairly static. I'm leaving this issue open since I'm gathering feedback on what I should improve in version 1.0 (which will almost be a complete rewrite).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants