I'm currently developing an AngularJs SPA and am putting in localization. While considering how I could represent the current language in the URL I wondered if there is any way of doing something like this:
example.com/#/:optionalLangParam example.com/#/:optionalLangParam/home example.com/#/:optionalLangParam/article/:pageNumber Whenever the language is the default for the deploy (this will usually be en) :optionalLangParam would not be present in the URL Is something like the above possible or should I just add the language to the end of the URLs like so: example.com/#/:langParam example.com/#/home/:langParam example.com/#/home/news/:langParam If it must be as in the latter, is there a way to automatically apply this to all routes or would I need to add this to each route? -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
