Thanks for the vid. Getting ready to do a project that needs to support English & Spanish, and I was looking for a quick rundown of how angular handles this. I've used pretty much every Angular feature except for this one, and this gave me the quick and dirty. Gonna do a small sandbox project and I should be good to roll for Monday. Appreciate the work!
Thank you but here you have to run the app specifically for required languages; what are scenarios when you can run the app once and can change the language in the ui?
Hi, please guide me if you know. I am using angular 17, when i do ng-serve, it says An unhandled expectation occurred: Requested locale ''es-CL' is not defined for the project. I even declared localize array in options
great job man, I love it. I have a question that you already answered, you proposed to route to different languages if a dropdown is implemented to switch between languages but this will refresh the page right, what if I don't want the page to be refreshed (page loading)? Another question please how can I automate the generation/update of xlf files (messages.fr.xlf and messages.en.xlf) when new translation words are being added? thanks again and I really enjoyed your video.
In this way different languages will come with different bundles so they are different applications all together so you can just route to the corresponding language bundles.
Hey, in this case, since all the languages are different applications, after they're built, you can simply redirect the user to the required local site. For example, if you host three languages, you'll have three applications in the "dist" folder, and you can link to them from a dropdown menu.
@@FunOfHeuristic i was wondering because i do have two dist folders with the both languages, but i don't know how i can add them to the options of the dropdown
That's why we have 2 files in this case, if you will support 3 language you will 3 file one is auto generated and other two are for two languages and English is default.
Only the default will be generated and you need to copy the new generation to your respective translation file and add transitions text inside it. If you notice the default one it doesn't has target we need to add the target manually
To translate data on the fly, you can make use of the Google Translation API. However, it might not always provide accurate results. The best alternative in such cases is to employ a dedicated translation service that can be verified by a human for correctness.
Thanks for the vid. Getting ready to do a project that needs to support English & Spanish, and I was looking for a quick rundown of how angular handles this. I've used pretty much every Angular feature except for this one, and this gave me the quick and dirty. Gonna do a small sandbox project and I should be good to roll for Monday. Appreciate the work!
Thank you but here you have to run the app specifically for required languages; what are scenarios when you can run the app once and can change the language in the ui?
would it work fine with routing ?
Thank you very much. Got to learn i18n and implemented it at work 👌👌
Hi, please guide me if you know.
I am using angular 17, when i do ng-serve, it says An unhandled expectation occurred: Requested locale ''es-CL' is not defined for the project. I even declared localize array in options
How to translate text from api (normally like string config) in angular app?
We have to define locale in angular.json file, So we cant use dynamic translation from backend
This is helpful for static content, for dynamic content you should use some translation service.
How to use different route
great job man, I love it. I have a question that you already answered, you proposed to route to different languages if a dropdown is implemented to switch between languages but this will refresh the page right, what if I don't want the page to be refreshed (page loading)?
Another question please how can I automate the generation/update of xlf files (messages.fr.xlf and messages.en.xlf) when new translation words are being added?
thanks again and I really enjoyed your video.
please can you tell me, how can I switch to multiple languages through select option from front end ?
In this way different languages will come with different bundles so they are different applications all together so you can just route to the corresponding language bundles.
i dont prefer this official localize from Angular. ngx-translate approach more clean imo.
does ngx-translate support RTL. Also any good latest tutorial on that?Thanks
How do you switch languages say by a dropdown menu?
same question here
Hey, in this case, since all the languages are different applications, after they're built, you can simply redirect the user to the required local site. For example, if you host three languages, you'll have three applications in the "dist" folder, and you can link to them from a dropdown menu.
@@FunOfHeuristic i was wondering because i do have two dist folders with the both languages, but i don't know how i can add them to the options of the dropdown
That would work, but I was thinking of a way to test it during development@@FunOfHeuristic
what happens when you update your app? if regenerate, you loose it all?
That's why we have 2 files in this case, if you will support 3 language you will 3 file one is auto generated and other two are for two languages and English is default.
@@FunOfHeuristic the work made in the other 2 is lost?
@@robertomessa9126 no it will not
@@FunOfHeuristic how so? the default will be regenerated, the other not
Only the default will be generated and you need to copy the new generation to your respective translation file and add transitions text inside it.
If you notice the default one it doesn't has target we need to add the target manually
Thanks but How can we change dynamic value.
To translate data on the fly, you can make use of the Google Translation API. However, it might not always provide accurate results. The best alternative in such cases is to employ a dedicated translation service that can be verified by a human for correctness.
Thanx man, you always explain nice and easy
You saved me, thank you so much
Good video, thanks
Great. Thank you
Thanks alot
Hindi wala bhi bna dete 😂
are u guju
how to use multiple route