Translator

This component implements the translation callbacks and methods. It has a useful get_string method for getting a string from the strings configuration. For example, you can get the "Listings" word this way:

hivepress()->translator->get_string( 'listings' );

You can also get the current language and region codes with the get_language and get_region methods.

Last updated