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

Templates i18n using FlowRouter URL prefixes #34

Open
imajus opened this issue Mar 26, 2016 · 0 comments
Open

Templates i18n using FlowRouter URL prefixes #34

imajus opened this issue Mar 26, 2016 · 0 comments

Comments

@imajus
Copy link

imajus commented Mar 26, 2016

I'm working on website's internalization using URL prefixes for language detection (eg., /en/page). All my FlowRouter routes belong to one router group which processes language prefix and set current language in the session.

I've tried to make useraccounts templates multilingual too but with no luck. The only solution which gives a result close to what I need is to comment out all AccountsTemplates.configureRoute('name') lines and replace them with manual routes creation using FlowRouter.route(). In that case my website internal links work and templates are displaying in correct language but when it comes to links generated by useraccounts itself it gives me an error.

So far I've come up with two different approaches how to achieve that:

  1. Allow passing FlowRouter group handle to AccountsTemplates.configureRoute options and use that for useraccounts routing.
  2. Allow passing triggers to AccountsTemplates.configureRoute options and append them to those used internally.

Both of that requires useraccounts:flow-routing source code alteration. Maybe there's another way?

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

1 participant