Skip to content

Commit 733f934

Browse files
committed
Fix bazinga usage (#2500)
(cherry picked from commit 800daf9)
1 parent c57e08c commit 733f934

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

docs/guide/back_office_translations.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If your browser language is set to French, the Back Office will be displayed in
3030

3131
`ezplatform.system.<siteaccess>.user_preferences.additional_translations: ['pl_PL', 'fr_FR']`
3232

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

3535
### Contributing Back Office translations
3636

@@ -120,4 +120,8 @@ The language to display will then be selected automatically based on [user prefe
120120

121121
!!! note
122122

123-
You may need to clear the cache after adding new translations, before they are available in the Back Office.
123+
Run `composer run post-update-cmd` which installs your JavaScript translations by using `BazingaJsTranslationBundle`,
124+
and clears the cache of the default SiteAccess.
125+
126+
Run `php bin/console cache:clear --siteaccess=admin` to clear the Back Office cache.
127+
You may need to replace `admin` with the Back Office's SiteAccess name used in your installation.

docs/guide/project_organization.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,6 @@ They can be referenced as relative to the root, for example `assets/js/script.j
2828

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

31-
??? note "Removing `assets` manually"
32-
33-
If you ever remove the `assets` folder manually, you need to dump translations before performing
34-
the `yarn encore <dev|prod>` command:
35-
36-
```
37-
php bin/console bazinga:js-translation:dump assets --merge-domains
38-
```
39-
4031
## Configuration
4132

4233
You project's configuration is placed in the respective files in `config/packages`.

0 commit comments

Comments
 (0)