OctoberCMS: Localized title meta tag

RainLab Translate plugin is great for localizing various strings and dynamic input fields, but sometimes the basic functionality just isn't enough. For example, this plugin does provide translations of some more advanced, dynamic strings. One of which is the title meta tag.

 <title>Hello World || CMS Suffix</title>

The solution to this exact problem is quite simple.

We just need to catch the event that this CMS page has been initialized and then simply attempt to translate the title.