DEV Community

Ushmi Dave
Ushmi Dave

Posted on

3

Some More Extensible Features of @rxweb/ngx-translate-extension for Angular Applications

Looking at the previous article on Why ngx-translate-extension, We came across through some of the useful and spectacular features of @rxweb/ngx-translate-extension package integrated it into the most simplest way possible.

Some more translation features which can be into frequent need and used into internationalization of your angular application like reusing the translation text, On demand translation, Async source binding etc. Some of them are listed below, You can get the whole feature list and their examples here

Reuse Text

This feature helps you to reuse the multilingual text based on the key name which already exists πŸ™‚

Component:
Alt Text

Html:
Alt Text

Json:
Alt Text

Inline Loaders

Inline loaders for your multilingual text using the @translate object πŸ€—

Component:
Alt Text

Html:
Alt Text

Json:
Alt Text

Async Translation

Async Translation for the source binding through the server data using @translateAsync object

Component:
Alt Text

Service:
The service used as serviceModel and serviceMethod in @translateAsync object.

Alt Text

Html:
Alt Text

On Demand Translation

Resolving the translation text based upon some event(user's click or user's input selection) πŸ™ƒ

Component:
Alt Text

Html:
Alt Text

Json:
Alt Text

Conclusion

These features of translation using decorator approach can help you to achieve a lot of scenarios where there exist to enhance the power of internationalization into your angular application in the most simple and intuitive manner with best practices implemented.

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

πŸ‘‹ Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay