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

Trying to access unsupported language by URL #602

Open
sharifqasrawi opened this issue Nov 17, 2022 · 1 comment
Open

Trying to access unsupported language by URL #602

sharifqasrawi opened this issue Nov 17, 2022 · 1 comment

Comments

@sharifqasrawi
Copy link

Describe the problem statement?

My website has only 2 languages (fr,en), but if someone tries to change the language directly in the URL like adding /es, the app crashes because the language file for "es" does not existe.

The expected solution you would like

a solution would be to redirect to /fr if the user enters enything but fr,en.

Package version

@rxweb/translate 1.0.15

@ajayojha
Copy link
Member

please share the stackblitz url, if possible

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