![]() Enhancements: Ripple doesnt support FontAwesome SVG Kit for Button/Menu/etc 9853 MultiSelect Add. Īnother way of using the translate directive is to use the translation key as the attribute value. pAnimate Add leaveClass for leave animation 12222. To display the copyright information, we have used the translate directive and supplied the required parameter using the translateParams input property. The translation key can be supplied as the content of the HTML element. We have used the translate directive to fetch the translation values for the required error message for all the fields. ng g m translateĪdd the following code to the file: import Using the translate directive Run the following command to create a new module in your app. Run the command as follows: npm install will add a separate module for ngx-translate. ![]() Run the following command to install the ngx-translate/core library in your app: npm install will need to install a loader that will help us load the translations from files using HttpClient. ng new ngx-translate-i18n -routing=false -style=scss Open the command prompt, and run the command shown below to create a new Angular app named ngx-translate-i18n. Navigate to the directory where you want to create the new project.
0 Comments
Leave a Reply. |