1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-03 06:12:53 +02:00

docs(angular): add multiple locales content (#6901)

This commit is contained in:
J. Degand
2024-09-01 07:44:48 -04:00
committed by GitHub
parent f2671c32c8
commit 33ef642dd8

View File

@@ -1 +1,12 @@
# Multiple Locales
# Multiple Locales
To deploy an Angular application with multiple locales, follow these steps:
1. Place different versions of your app in locale-specific directories
2. Use the HTML `<base>` tag with the `href` attribute to set the base URL for relative links.
3. Deploy each language version in a different subdirectory. Redirect users to their preferred language based on the `Accept-Language` HTTP header.
Visit the following resources to learn more:
- [@official@Angular Official Docs - Deploy Multiple Locales](https://angular.dev/guide/i18n/deploy)
- [@video@How Make Multi-Language Angular Websites - Full Guidance On Angular Localization](https://www.youtube.com/watch?v=vSwYuyH4kMA)