> For the complete documentation index, see [llms.txt](https://tcg.gitbook.io/voyager-2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tcg.gitbook.io/voyager-2/plugins/language.md).

# Language

If you want to access your localization strings from inside your Vue components, simply tell Voyager they exist:

```php
<?php

namespace Me\MyPlugin;

use Illuminate\Support\ServiceProvider;
use Voyager\Admin\Facades\Voyager as Voyager;
use Voyager\Admin\Manager\Plugins as PluginManager;

class MyPluginServiceProvider extends ServiceProvider
{
    public function boot(PluginManager $pluginmanager)
    {
        $pluginmanager->addPlugin(\Me\MyPlugin\MyPlugin::class);

        $this->loadTranslationsFrom(realpath(__DIR__.'/../resources/lang'), 'my-plugin');
        Voyager::addTranslations('my-plugin', 'generic');
    }
}
```

You can now access the strings like `__('my-plugin::generic.my-string')`
