Adding translatable content in Angular applications
In this section, we will dive into internationalization, commonly referred to as i18n (i18n is the abbreviation for internationalization, where “i” and “n” are the first and last letters of the word, and 18 stands for the number of letters in between the “i” and the “n”). Internationalization is developing usable applications for people who speak different languages. Simply put, when you implement i18n, you make your application content translatable. About 75% of the world doesn’t speak English at all, so if you only display your application content in English (or exclusively use another language), you are missing out on a lot of potential users.
The Angular framework has built-in functionalities to support translatable content, but we will not be using the built-in i18n solution to support translatable content. The first reason is that the built-in solution used XML...