# Translations

Every user-facing string in this plugin uses the text domain **`sr-product-360o-view`**.
The domain is loaded on `init` from this directory — see [`src/I18n.php`](../src/I18n.php).

## Generating the template (POT)

Requires [WP-CLI](https://wp-cli.org/) with the i18n command:

```
bash bin/make-pot.sh
```

This writes `sr-product-360o-view.pot` here, scanning the plugin for translatable
strings (the vendored `vendor-lib/` library and `bin/` are excluded).

## Adding a translation

Copy the POT to `sr-product-360o-view-{locale}.po` (e.g. `sr-product-360o-view-fr_FR.po`),
translate the entries, and compile it to a matching `.mo`. WordPress loads the
correct locale automatically.
