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

Multiple baseDir's to support multi-language app #141

Open
MickL opened this issue Jun 22, 2018 · 0 comments
Open

Multiple baseDir's to support multi-language app #141

MickL opened this issue Jun 22, 2018 · 0 comments

Comments

@MickL
Copy link

MickL commented Jun 22, 2018

A descriptive title

An (aot) Angular application currently needs to build each language seperate:

dist/index.html // Detect language and redirect to /en or /de
dist/en/index.html // BaseDir app in english
dist/de/index.html // BaseDir app in german

So the desired functionality would be:

http://localhost:3000/ -> dist/index.html

http://localhost:3000/en -> dist/en/index.html
http://localhost:3000/en/some/fancy/route -> dist/en/index.html
http://localhost:3000/en/styles.css -> dist/en/styles.css

http://localhost:3000/de -> dist/de/index.html

But how to archieve this? Is it possible by use of a custom middleware? Or is this not possible with lite-server? Normally i would add a htaccess in dist/, dist/en/ and dist/de/.

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