1 Comment

Running php bin/magento setup:static-content:deploy for different languages

RWD mini-cart: How to reload cart page if product removed via mini cart?
Get custom-options order item id in sales_order/view

Whenever I run php bin/magento setup:static-content:deploy it always generates files for en_US.

I would like it to generate files for en_GB instead.

How do I achieve this?

And is there a reference manual for these command line instructions? I tried looking on the official Magento 2 website, but couldnt find anything.

Related Posts

  • Magento 2 : Execute Cron (2)
    How can I execute Cron from command line manually. In Magento 1.x we can run cron like : www.testsite.com/cron.php but in magento 2 how can I do this ? Please also help me for how can I execute cron from cmd. I already used below command which is not working : sudo php […]
  • Unable to execute cron.php via SSH nor CRONTAB (2)
    I recently hosted my website using Magento, upon setting up my cron.php i get the following output : /home/xxx/webapps/abc/cron.php: line 1: ?php : No such file or directory /home/xxx/webapps/abc/cron.php: line 2: /** : No such file or directory /home/xxx/webapps/abc/cron.php: line […]
  • magento2, Child theme in different language (2)
    Using below command I have created the csv file for translation. I set the settings for locale in admin panel. After running upgrade and deploy command, I get 404 for all css and js files. In Pub/static I see still files are generated under en_US! What step is missing here? php […]
  • Magento 2 – Language Package (0)
    I have created the langauage csv files using the following commands. And the translation is just working fine. Do I still need to create a language package as described in this link? php bin/magento i18n:collect-phrases -o zh_hant_hk.csv -m . php bin/magento i18n:collect-phrases -o […]
  • How to enable custom admin theme in Magento 2 (2)
    I have followed the instructions here: How to create admin theme for Magento2 and here: How to change backend admin theme in Magento 2.0.7 + and I still dont understand what I'm supposed to do to get my theme to show up in the backend. I have created my theme in […]
  • Magento 2.1 :- During compilation Fatal error (1)
    I complete my own module. Now when i run the below command for compilation. I got the error. Run this command for compilation :- php bin/magento setup:di:compile Fatal error: Uncaught TypeError: Argument 1 passed to […]
  • Magento 2 Permission error – RESET (1)
    There seems to be some issue with magento after running setup:upgrade and di compile from the bin directory, Once those two commands ran. Permission and ownership seems to be reset and magento store stop working , It will work If I manually reset the permission. See below This is […]
  • Magento 2 execute php bin/magento setup:upgrade without command prompt (1)
    I am running a Magento 2 website on my mac locally. My problem is that I'm having problems with my mac setup ad i'm not about to run: php bin/magento setup:upgrade from my terminal. My question is...I there's any other way to do the same as: php bin/magento setup:upgrade or php […]
  • Custom module does not get its classes loaded (2)
    I'm trying to create a module for my Magento 2 installation because I need to change some behaviours. I followed this guide to build a module which basically (at the moment) just wants to override a method for GroupManagement class in Customer Model. The matter is that when I run the […]
  • Problem changing to Production mode – Command returned non-zero exit code (0)
    My Magento 2 was running normally, then I tried to change for production mode and I'm getting the following error: Command returned non-zero exit code: `php -f /var/www/magento2.strip-curtains.com/public_html/bin/magento setup:di:compile-multi-tenant 2>&1` When I run the […]
RWD mini-cart: How to reload cart page if product removed via mini cart?
Get custom-options order item id in sales_order/view

1 Comment on this article

  • User November 12, 2016
    bin/magento setup:static-content:deploy en_GB  
    

    or if you want for multiple languages:

    bin/magento setup:static-content:deploy en_GB en_US ro_RO
    

    Reply

Add a comment

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax