Skip to content

Commit

Permalink
Fix bazinga usage (#2500)
Browse files Browse the repository at this point in the history
  • Loading branch information
adriendupuis authored Dec 12, 2024
1 parent e9b50b8 commit 800daf9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ They can be referenced as relative to the root, for example `assets/js/script.j

All project assets are accessible through the `assets` path.

??? note "Removing `assets` manually"

If you ever remove the `assets` folder manually, you need to dump translations before performing
the `yarn encore <dev|prod>` command:

```
php bin/console bazinga:js-translation:dump assets --merge-domains
```

## Configuration

You project's configuration is placed in the respective files in `config/packages`.
Expand Down
8 changes: 6 additions & 2 deletions docs/multisite/languages/back_office_translations.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ If your browser language is set to French, the back office is displayed in Frenc

`ibexa.system.<siteaccess>.user_preferences.additional_translations: ['pl_PL', 'fr_FR']`

Then, run `composer run post-update-cmd` and clear the cache.
Then, run `composer run post-update-cmd` and `php bin/console cache:clear --siteaccess=admin`.

### Contributing back office translations

Expand Down Expand Up @@ -117,4 +117,8 @@ The language to display is then selected automatically based on [user preference

!!! note

You may need to clear the cache after adding new translations, before they're available in the back office.
Run `composer run post-update-cmd` which installs your JavaScript translations by using `BazingaJsTranslationBundle`,
and clears the cache of the default SiteAccess.

Run `php bin/console cache:clear --siteaccess=admin` to clear the back office cache.
You may need to replace `admin` with the back office's SiteAccess name used in your installation.

0 comments on commit 800daf9

Please sign in to comment.