prefix url #491
danielehrhardt
started this conversation in
General
prefix url
#491
Replies: 3 comments
-
Something like that: |
Beta Was this translation helpful? Give feedback.
0 replies
-
@danielehrhardt we currently don't have any official plugin for that, so you can implement it in any way that best suits your needs 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I wan't to ask how you would realize prefix language routing.
What do I mean with that?
domain.com/en/page1
domain.com/de/page2
I created a APP INITIALIZER Service and check if there is the URL and then set the language to that URL.
The user can overwrite manually the language this value is then saved to the local storage.
In the angular router I do the following:
:lang/page1
In Vue the translation Plugin can handle the URL Language prefix by itself. For ngx-translate there is a Plugin that can handle that.
Now I did all by myself.
Is there a better way?
Best
Daniel
Beta Was this translation helpful? Give feedback.
All reactions