Angular | How To Add Internationalization To Your Angular Application Using Ngx-Translate 🌐 | Part 1

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.พ. 2025

ความคิดเห็น • 4

  • @misteraxolotl
    @misteraxolotl 3 หลายเดือนก่อน

    Nice tutorial but how do you import the words on each page?

    • @benandengineering
      @benandengineering  3 หลายเดือนก่อน

      Firstly, thanks for the kind words, much appreciated.
      Secondly, good question and to answer you.
      The best thing about ngx-translate is that once you specify the files sources, then they will be available in the whole application.
      So, import once, use everywhere. I hope this helps answer you.

    • @misteraxolotl
      @misteraxolotl 3 หลายเดือนก่อน

      @@benandengineering Thank you for your reply, but I'll need more details.
      To import the words of each language you have to put {{}} in the html file I guess and if yes in this case I put what in it?

    • @benandengineering
      @benandengineering  3 หลายเดือนก่อน

      Okay, you will need to pipe it.
      Have you seen part 2 of the video? It has a complete demonstration of how to use the translation both in HTML as well as in Component.
      th-cam.com/video/uDnPubV-u-g/w-d-xo.html
      Let me know if you have any more questions.