Can you please give me some tips on the following;
I am trying to install a new language pack using crowding project , I have downloaded the specific language pack for magento 2.3 and uploaded the files to magento root folder… but I can’t find that language under locale
I am not about the correct commands that will enable the language pack.
There’s a couple of methods to get translations working in Magento. But the method you’re referring to doesn’t require “installing” per se. You just upload the necessary files to the necessary location.
Grab and Upload Files
So, if I wanted to install French, then I’d download the French Pack from the Crowdin GitHub Repo and then upload those files to <magento_root>/app/i18n/language-fr_FR
Select Locale
Then select the required Locale when you go into Stores > Configuration > General > General > Locale Options
Thank you Craig, I followed the steps above, but I am unable to select or change to the new language from “Locale Options” as this still “Disabled” under stores!
“This can happen when your site is production mode because if the locale is changed and there has been no static content generated for that locale there will be no assets available. The frontend would request assets from a location that would not exist and all styles and scripts would 404, which obviously isn’t ideal.”
Please try to change to deafault or developer mode.
1st. check your mode running the following command:
bin/magento deploy:mode:show
if in production mode change it to default or developer mode running one of these 2 commands:
bin/magento deploy:mode:set default | bin/magento deploy:mode:set developer
Hi Pawel, I just enabled the new language pack for all store views while in developer mode, but it not showing in front page… is there something missing
I don’t want to retype Craig’s message becauce I could missspell something.
Please check whether you installed your language pack in app/i18n/yourshopname/ directory.
You should have in this directory a language pack i.e. en_GB, fr_FR, de_DE
The pack should contain 4 files, registration.php, composer.json, language.xml and your csv translation file.
Remember to clear caches and deploy static content.
Ref to Craig’s notes: Clear Caches
Finally deploy your static content and clear your caches:
Deploy Static Content for both languages: bin/magento setup:static-content:deploy en_GB en_US fr_FR -f
Clean Cache: bin/magento cache:clean
Flush Cache: bin/magento cache:flush
I hope you changed some entries in the registration.php and language.xml files.
1.Installing the language pack (uploading it to app/i18n/YourVendorNane directory
2. Slightly modify your language.xml and regitration.php files - add your vendor name to the files
3. Changing locale
4. Deploying static content and cleaning cache.
Both language.xml and registration.php already have vendor name, so I modified the directory name (app/i18n/VendorName), but still no change on frontpage.
I deployed static content, cleared cache, and switched back to default magento theme (luma), but locale is not loaded.