Multilingual angular 8 apps with ngx-translate

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

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

  • @dylanlang5088
    @dylanlang5088 2 ปีที่แล้ว

    This was exactly what I was looking for! very informative and helpful! Thank you so much for the tutorial and good luck on your future projects!

  • @GreenPeteTV
    @GreenPeteTV 3 ปีที่แล้ว +3

    Thank you, it's a great tutorial. Seriously helped me a lot.

  • @sapariyajaydipdhirajlal6714
    @sapariyajaydipdhirajlal6714 4 ปีที่แล้ว +3

    such a lovely hands on tutorial ,im finding for hands on but no one have perfect video compared to this, thank you very much sir keep making this type of informative hands on videos for newbies like us.

  • @karthikakavi8526
    @karthikakavi8526 2 ปีที่แล้ว

    Thank you for the information!!.Can you tell which method is good and easy for angular translation, whether it is i18n(discussed in last video) or ngx-translate. And one more doubt can we able to switch language in runtime using i18n(using dropdown in UI)

  • @saisanthosh7072
    @saisanthosh7072 3 ปีที่แล้ว +1

    It's informative one, I'm having a doubt. For all the words we should add corresponding word in respective en.json or fr.json respectively. Is there any possibilities on displaying the data dynamically

  • @jhonmasco1366
    @jhonmasco1366 4 ปีที่แล้ว +8

    Nice Tutorial. I have one question: How i can translate globally, i mean, i am using diferent files for menu (header - sidebar- footer) , i want translate the header. I need to put the configuration in the header.ts or from app-component is possible? because is not working for me from there. Thanks

    • @LexMadafaka
      @LexMadafaka 3 ปีที่แล้ว +2

      Searching for the same thing... no answers found yet. Anyone?

    • @jhonmasco1366
      @jhonmasco1366 3 ปีที่แล้ว

      @@LexMadafaka i solved my problem, importing the translateModule in app.module.ts and all the diferent modules inside the project. Try that!, the best way to do that is have a sharedModule and import it in all the other module.

  • @tarapablo
    @tarapablo 5 ปีที่แล้ว +3

    Thank you, very informative and clear demonstration :)

  • @venkateshuttur4136
    @venkateshuttur4136 3 ปีที่แล้ว

    very nice one,have one doubt-in assest folder is it mandatory to name as i18N?

  • @nadayousef5143
    @nadayousef5143 4 ปีที่แล้ว +2

    can you please make a vedio ngxtranslate for lazy loading ! I cant make it work for me

  • @Austin-st8yn
    @Austin-st8yn 4 ปีที่แล้ว +1

    Very nice! I have a question. How can I set the date and time format based on the user's locale?

  • @Suhas_reddy112
    @Suhas_reddy112 3 ปีที่แล้ว +1

    Thanks for this tutorial

  • @sapariyajaydipdhirajlal6714
    @sapariyajaydipdhirajlal6714 4 ปีที่แล้ว +2

    sir, please use bigger font because i can't read that properly even in 720p and your videos will look fine even with bigger font and thanks again you saved our life... hahaha

    • @BlackBoxTech
      @BlackBoxTech  4 ปีที่แล้ว

      Ok next time. I am getting this feedback from many. Thanks again!

  • @pariahosseiny1586
    @pariahosseiny1586 4 ปีที่แล้ว +1

    Excellent ,it worked for me.thank you so much.

  • @pradeepyenkuwale7143
    @pradeepyenkuwale7143 3 ปีที่แล้ว

    How i can apply this pip filter in all the pages of my project?

  • @haithamelrefaie
    @haithamelrefaie 4 ปีที่แล้ว +1

    Thanks a lot , this is very helpful

  • @LexMadafaka
    @LexMadafaka 3 ปีที่แล้ว +1

    Good one. Thanks!

  • @manishkumarchouhan7841
    @manishkumarchouhan7841 4 ปีที่แล้ว

    which one is better for internationalization either ngx-translate or using xlf in the project ?

  • @ADSNGreenLife
    @ADSNGreenLife 4 ปีที่แล้ว

    @BlackBox, Nice tutorial But If have dynamic data from API. I want to show in Text, table, dropdown. And while post API I want to send data to API as in English then? Can you tell me how it's possible?

  • @icasemobileservicecenter3293
    @icasemobileservicecenter3293 5 ปีที่แล้ว

    how to get lang from only one json file ?

  • @attherockshow8902
    @attherockshow8902 5 ปีที่แล้ว +1

    Any recommendation on how to split language files by module ?

  • @jared394
    @jared394 4 ปีที่แล้ว

    Great video do you have any videos on RTL

  • @bernardomondragonbrozon5182
    @bernardomondragonbrozon5182 4 ปีที่แล้ว +1

    Great tutorial. Thank you very much!

  • @amolmali3583
    @amolmali3583 3 ปีที่แล้ว +1

    Great video. thanks

  • @strikerwow2011
    @strikerwow2011 4 ปีที่แล้ว +1

    Nice I already like!

  • @AyushmanAdhikary
    @AyushmanAdhikary 4 ปีที่แล้ว +1

    Very good tutorial. Thank you!

  • @oubaidhlaimi
    @oubaidhlaimi 3 ปีที่แล้ว +1

    thank u very much sir

  • @majklzumberi1761
    @majklzumberi1761 4 ปีที่แล้ว +1

    Amazing content! thanks for this tutorial

  • @NitishKumar-hw3nr
    @NitishKumar-hw3nr 4 ปีที่แล้ว

    Why do we need a different JSON files for different languages? Can't we create a JSON file where we can provide the key as language code and we can have all keys and values? {'fr':[{'key':'val'},{'Key':'val'}}

  • @javascript_developer
    @javascript_developer 4 ปีที่แล้ว

    How can I change that en into English in dropdown ? i tried created array object but it didn't allow me due to type string.

  • @javascript_developer
    @javascript_developer 4 ปีที่แล้ว +1

    awesome thanks for the tutorial

  • @MarioAxl
    @MarioAxl 3 ปีที่แล้ว

    What do you think is best ngx-translate or i18?

    • @BlackBoxTech
      @BlackBoxTech  3 ปีที่แล้ว

      Ngx-translate have more options and also plugin options

  • @alaanagah9425
    @alaanagah9425 4 ปีที่แล้ว +2

    thank you so much

  • @tariqboukouyen4841
    @tariqboukouyen4841 5 ปีที่แล้ว +1

    works just fine. THANKS.

  • @giseiitb
    @giseiitb 4 ปีที่แล้ว

    do you have this sample code in some publicly available repository?

  • @brawnyvenky9584
    @brawnyvenky9584 5 ปีที่แล้ว +1

    good intro to angular translate, similarily can you give an example of how to pass parameters dynamically to the en.json / fr.json like
    In en.json:-
    { 'HOME': 'some text with variable from code {{customer.name}} . }

  • @parthaghosh9687
    @parthaghosh9687 4 ปีที่แล้ว

    I liked your video just one quick question - how to make the content dynamic instead static in JSON files

    • @javascript_developer
      @javascript_developer 4 ปีที่แล้ว

      I think i18n is only for local text. if you want to make things dynamic, that is need to done via api itself. API should accept locale in header in api call and return the data accordingly.

  • @assmabenmussa4228
    @assmabenmussa4228 4 ปีที่แล้ว +1

    Excellent tutorial
    Thank you, sir!

  • @abdulwehabmohammed5580
    @abdulwehabmohammed5580 3 ปีที่แล้ว +1

    Pretty cool and simple tutorial. Thankyou very much.

  • @usamaattique150
    @usamaattique150 3 ปีที่แล้ว

    cannot connect json file with html
    any idea?

  • @sam86k
    @sam86k 4 ปีที่แล้ว

    ERROR in Error during template compile of 'AppModule'
    Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler in 'ServiceWorkerModule'
    'ServiceWorkerModule' references 'PLATFORM_ID' at @angular\service-worker\service-worker.ts(82,39)
    'PLATFORM_ID' references 'PLATFORM_ID'
    'PLATFORM_ID' references 'PLATFORM_ID'
    'PLATFORM_ID' references 'PLATFORM_ID'
    'PLATFORM_ID' is not initialized at @angular\core\src\application_tokens.ts(40,22).

  • @fduduf
    @fduduf 5 ปีที่แล้ว +1

    Very simple way, Thank you so much!

  • @supriyasuryawanshi3453
    @supriyasuryawanshi3453 4 ปีที่แล้ว

    How to translate dynamic data from API?

  • @mryassine7221
    @mryassine7221 5 ปีที่แล้ว

    How to do rtl and ltr and switch components for left to right? Thanks for this awesome video 👍

  • @Muhammad_Mabrouk
    @Muhammad_Mabrouk 5 ปีที่แล้ว +3

    Amazing tutorial, Thank you for this video 🌹

  • @AndriyTomusiak
    @AndriyTomusiak 4 ปีที่แล้ว

    How to do after the reload page, your language not no go to default, but stay which you put ?

    • @DiogoGuik
      @DiogoGuik 3 ปีที่แล้ว

      Hi man, have you found a solution for that ?

    • @BlackBoxTech
      @BlackBoxTech  3 ปีที่แล้ว

      You can use localstorage to store the language preference.

  • @nourahaldahash4742
    @nourahaldahash4742 4 ปีที่แล้ว

    Thank you very much !!

  • @Felipe-gw4gr
    @Felipe-gw4gr 4 ปีที่แล้ว +1

    Hey B.T. , this dark theme from VisualCode is hard to see in tutorial. Thanks for video!

    • @BlackBoxTech
      @BlackBoxTech  4 ปีที่แล้ว

      Hi Sure I will change the theme

  • @ايمانعبدالقادر-ص9خ
    @ايمانعبدالقادر-ص9خ 4 ปีที่แล้ว +1

    thanks :)

  • @nadayousef5143
    @nadayousef5143 4 ปีที่แล้ว

    Thanks a million :)

  • @sreekanthbandaru3359
    @sreekanthbandaru3359 4 ปีที่แล้ว +1

    this video is not clear about the code

  • @VaibhavPatil-rx7pc
    @VaibhavPatil-rx7pc 4 ปีที่แล้ว

    can you share code for it?

  • @alexandergrinevskiy8445
    @alexandergrinevskiy8445 5 ปีที่แล้ว

    Why are you using http loader if you don't even utilize it.

    • @BlackBoxTech
      @BlackBoxTech  5 ปีที่แล้ว +3

      Translatehttploader being used by ngx translate to load the JSON files it's used in the code.

  • @MuhammadbinYusrat
    @MuhammadbinYusrat 4 ปีที่แล้ว +5

    The background sounds are scary.. I thought you were sitting somewhere between zombies 😄

    • @kareemmuhammad8360
      @kareemmuhammad8360 4 ปีที่แล้ว +2

      I think this background only to keep focusing on the part is being explained

  • @sargumsingh2086
    @sargumsingh2086 5 ปีที่แล้ว +1

    where do you specify path to pull json files under assets\i18n? I get 404 error for assets/i18n/es.json

    • @assmabenmussa4228
      @assmabenmussa4228 4 ปีที่แล้ว

      hey there, the same problem happened with me and i fixed it by replacing {{ HOME.TITLE | translate }} with {{ 'HOME.TITLE' | translate }}..hope this helps

    • @MuhammadbinYusrat
      @MuhammadbinYusrat 4 ปีที่แล้ว

      By default it should look in the assets folder.

  • @roodwally3167
    @roodwally3167 3 ปีที่แล้ว

    thnks

  • @jbalceda
    @jbalceda 4 ปีที่แล้ว +1

    Thanks man!

  • @LucasAndersonL
    @LucasAndersonL 4 ปีที่แล้ว

    Thanks for help me...
    But, in my case worked only using [innerHTML]="'home.title' | translate", but work hahaha
    Thanks

  • @radovansurlak7445
    @radovansurlak7445 5 ปีที่แล้ว +1

    Thanks a lot :)

  • @jerrytab4276
    @jerrytab4276 5 ปีที่แล้ว +1

    github repo please, thanks!

  • @danielvega646
    @danielvega646 2 หลายเดือนก่อน

    18:35

  • @singhamit0002
    @singhamit0002 3 ปีที่แล้ว

    Very poor visibility...

    • @upcom1ng116
      @upcom1ng116 3 ปีที่แล้ว

      Assuming you are watching from the phone?

    • @singhamit0002
      @singhamit0002 3 ปีที่แล้ว

      @@upcom1ng116 yes

  • @larsfagerbakke2140
    @larsfagerbakke2140 4 ปีที่แล้ว +1

    Thank you for this nice tutorial!

  • @hmmer3471
    @hmmer3471 4 ปีที่แล้ว

    Thank you very much

  • @etatevosian
    @etatevosian 4 ปีที่แล้ว

    Thank you! Very nice tutorial!