Use this package to separate the language sentences from your javascript components.
The language sentences are defined inline in the header of the document. See how switch between language.
See other examples to learn how to use the translator plugin to load different modules or loading onDemand when you need a language module.
Actually, you can see few packages in this library that use the Translator plugin to management of all the language's sentences needed during the displaying process.
Bubbling / Context Menus (YUI-CMS:YAHOO.CMS.bubbling): Tutorials
In this case, the translator plugin is used to load the remote language sentences to display the correct menus options in a certain language.