> For the complete documentation index, see [llms.txt](https://docs.hivepress.io/developer-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hivepress.io/developer-docs/framework/components/translator.md).

# Translator

This component implements the translation callbacks and methods. It has a useful `get_string` method for getting a string from the `strings` [configuration](/developer-docs/framework/configurations.md). For example, you can get the "Listings" word this way:

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

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