Filament: Translate Labels in Multi-Language Projects

Поділитися
Вставка
  • Опубліковано 15 вер 2024
  • This is a 3-in-1 tip video for labels in international projects.

КОМЕНТАРІ • 24

  • @SjoerdvanHeijst
    @SjoerdvanHeijst Рік тому +3

    I just started programming again after a 9 year brake (kids, programming is not my main job but a hobby) and i love your work! Extremely helpful videos and i will soon register for laravel daily! It is insane how much has changed in 9 years, i used to build everything myself and now with laravel+filament i can build something in days to used to take me months. 😅 hope you kee making these videos for a long time, so much to learn still.

  • @fantianyu
    @fantianyu 6 місяців тому

    Perfect! Thank you for this tip. I can directly tell you this video converted me to buy on filamentexamples

  • @chlouis-girardot
    @chlouis-girardot Рік тому +1

    Filament is such an amazing package 🙌

  • @ricko13
    @ricko13 Рік тому +5

    fun fact: we have never heard Povilas speak in lithuanian in any video, not even a single "Labas" 😄

    • @FilamentDaily
      @FilamentDaily  Рік тому +7

      Oh come on, don't push me to start another channel "Lithuanian Daily", I don't have enough time in the day :)

    • @ricko13
      @ricko13 Рік тому

      @@FilamentDaily 😆😆 no but at least a goodbye in your language hahaha

  • @alexpugna1903
    @alexpugna1903 2 місяці тому

    and how can we translate resource names in the navigation for example?

  • @forsearch-uu9oc
    @forsearch-uu9oc 3 місяці тому

    thanks you, really helpful

  • @alessiobulfaro
    @alessiobulfaro Рік тому +1

    But if I have folder for my translation /lang/lt/app.php then Filament translateLabel() doesn’t work right? Can work with some configurations or is not excepted? And so we have to use __(‘app.title’)?

    • @FilamentDaily
      @FilamentDaily  Рік тому

      Not sure, I haven't seen this working with translateLabel()

  • @falkowoudstra
    @falkowoudstra Рік тому +1

    We often use translation labels such as: __('posts.title')
    Any tips on keeping translations clean without this?

  • @bumpyy
    @bumpyy 11 місяців тому

    Is there a way to find out what language we editing when editing the form using spatie translatable plugin?,
    example: text hint that change from 'en' to 'id' when switching current local, because i think the translatable plugin does not change current locale i'm editing if im using the langueage switcher other than from translatable plugin. cmiiw.

    • @FilamentDaily
      @FilamentDaily  11 місяців тому

      Not sure, this is a very package specific question, please ask it on Filament discord or Spatie GitHub.

    • @bumpyy
      @bumpyy 11 місяців тому

      @@FilamentDaily will do, i just remember about this when i watch your video, thanks for the reply.

  • @sawaLearn
    @sawaLearn 10 місяців тому

    could you lead me to a full video or tutorial for configuring the lang and then translate the panel menu item?

    • @FilamentDaily
      @FilamentDaily  10 місяців тому

      I think this video would help: ua-cam.com/video/ZWK6dd-47w4/v-deo.html

  • @moaazbriek5053
    @moaazbriek5053 Рік тому

    Hello Povilas ,
    How did you build the language selection input in the navigation bar?

    • @FilamentDaily
      @FilamentDaily  Рік тому +1

      This plugin filamentphp.com/plugins/bezhansalleh-language-switch

    • @moaazbriek5053
      @moaazbriek5053 Рік тому

      Actually, I used this plugin and have published the languages files, but navigation language select input is missing.

    • @FilamentDaily
      @FilamentDaily  Рік тому +1

      @@moaazbriek5053 not sure then, ask on the official Filament discord or the plugin author directly on GitHub.

    • @moaazbriek5053
      @moaazbriek5053 Рік тому

      Thanks @@FilamentDaily

    • @V01D0C
      @V01D0C 11 місяців тому

      @@moaazbriek5053 Hello, did you find a solution? I have the same problem. I followed the steps in the documentation but doesn't work.