Marking Text for Translation in Angular
📖 Scenario: You are building a simple Angular app that will support multiple languages. To prepare your app for translation, you need to mark certain text strings so that translation tools can find them.
🎯 Goal: Create an Angular component that marks text for translation using Angular's i18n attribute.
📋 What You'll Learn
Create an Angular standalone component named
TranslateExampleComponent.Add a heading with the text
Welcome to our site marked for translation using the i18n attribute.Add a paragraph with the text
Enjoy your stay! also marked for translation.Use Angular's recommended syntax for marking text for translation.
💡 Why This Matters
🌍 Real World
Marking text for translation is essential when building apps that support multiple languages, making your app accessible to a global audience.
💼 Career
Many companies require developers to prepare their Angular apps for internationalization to reach users worldwide.
Progress0 / 4 steps