i18n Full Guide: How to Internationalise your Spring boot REST API

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 24

  • @Morocco-m3s
    @Morocco-m3s 2 года назад

    💚 Alles Gute und weiterhin viel Erfolg
    Viel Glück, tolles Video
    Tolles Video, viel Glück!

  • @bahrichamseddine9702
    @bahrichamseddine9702 2 года назад +1

    good job ali Thank's

  • @rjebhamdi9660
    @rjebhamdi9660 2 года назад

    keep going.. good job

  • @abderrahmenalhelaoui5813
    @abderrahmenalhelaoui5813 2 года назад +1

    i get this error message: No message found under code 'common.hello' for locale 'en_US', can know why?

    • @BoualiAli
      @BoualiAli  2 года назад

      For Spring Boot to auto configure a MessageSource it checks the existence of the .properties. If that exists a MessageSource is configured, else nothing is configured and no messages will be resolved.
      To fix add an empty .properties to src/main/resource to have the MessageSource automatically configured.

    • @abderrahmenalhelaoui5813
      @abderrahmenalhelaoui5813 2 года назад

      @@BoualiAli I have made as you did, but the error persist

    • @achraffandouli3905
      @achraffandouli3905 2 года назад +1

      @@abderrahmenalhelaoui5813 , The keys for the values that will be localized have to be the same in every file, with values appropriate to the language they correspond to, to fix it just put in these line in the corresponding files like this:
      messages.properties:
      common.hello=Welcome!, no language key('en' or 'fr') mentioned
      messages_us.properties:
      common.hello=Hello! Welcome to our i18n app!
      messages_fr.properties:
      common.hello=Bonjour! Bienvenue sur notre app i18n

  • @xaviernavarro1578
    @xaviernavarro1578 2 года назад

    Thanks Bouali great video. On spring boot 2.7 when I have a problem with LocalResolver. It tells me that it is already defined when I try to run the code. Thanks again.

    • @BoualiAli
      @BoualiAli  2 года назад +1

      In spring 2.7.0 they changes a bunch of stuff. I will try to update / create new tutorials for the the new version

  • @lts8683
    @lts8683 2 года назад

    Can you talk about database migration on next vedios
    Thanks you 💕

    • @BoualiAli
      @BoualiAli  2 года назад

      Can you clarify your question more please

    • @lts8683
      @lts8683 2 года назад

      @@BoualiAli there are libraries like flyway or liquibase that work as version control for database, when we want to modify schema of our database, it is recommended to use them.

    • @BoualiAli
      @BoualiAli  2 года назад +1

      @@lts8683 now I understand the question
      I will prepare a video for that

  • @jeanmoroko6085
    @jeanmoroko6085 Год назад

    Hello Ali, this is a good tutorial. Please can you share source or a github link ?

    • @BoualiAli
      @BoualiAli  Год назад

      Here it is
      github.com/ali-bouali/spring-boot-workshops

    • @BoualiAli
      @BoualiAli  Год назад

      Don’t forget the star ⭐️ 😁

    • @munawarabbas1636
      @munawarabbas1636 Год назад

      @@BoualiAli its something else not code of this video

  • @张武-i9s
    @张武-i9s 5 месяцев назад

    are there any VCS hosted your code ? thanks

  • @besooab8810
    @besooab8810 2 года назад

    can u share the source code ? .. ty

    • @BoualiAli
      @BoualiAli  2 года назад +1

      Will be available soon, Stay tuned