From 800daf9995cecb6137f4c9eebffd58f789b06f5d Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:09:38 +0100 Subject: [PATCH] Fix bazinga usage (#2500) --- .../project_organization/project_organization.md | 9 --------- docs/multisite/languages/back_office_translations.md | 8 ++++++-- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/docs/administration/project_organization/project_organization.md b/docs/administration/project_organization/project_organization.md index 9f0a24bdfb..5803cea48d 100644 --- a/docs/administration/project_organization/project_organization.md +++ b/docs/administration/project_organization/project_organization.md @@ -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 ` 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`. diff --git a/docs/multisite/languages/back_office_translations.md b/docs/multisite/languages/back_office_translations.md index 8b1597f874..2cc69f5143 100644 --- a/docs/multisite/languages/back_office_translations.md +++ b/docs/multisite/languages/back_office_translations.md @@ -31,7 +31,7 @@ If your browser language is set to French, the back office is displayed in Frenc `ibexa.system..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 @@ -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.