#StackBounty: #magento2 #store-view #language collect phrases and lang pack command line different from official doc – Magento 2.0.1

Bounty: 50

I use magento version 2.0.1, I am trying to add new language package, I have followed the instruction from official doc, that commands are not working

command syntax mentioned in official doc

magento i18n:collect-phrases -o "/var/www/html/magento2/xx_YY.csv" -m

magento i18n:pack [-m|--mode={merge|replace}] [-d|--allow-duplicates] <source> <locale>

example mentioned in official doc

magento i18n:collect-phrases -o "/var/www/html/magento2/xx_YY.csv" -m

magento i18n:pack /var/www/html/magento2/xx_YY.csv -d xx_YY

when I run this command I got error Not enough arguments. and give suggestion like

i18n:collect-phrases [-o|--output="..."] [-m|--magento] directory


i18n:pack [-m|--mode="..."] [-d|--allow-duplicates] source pack locale

I have tried this

Collect Phrases

bin/magento i18n:collect-phrases -o "/var/www/html/magento2/app/i18n/test/te_te/te_TE.csv" -m "/var/www/html/magento2/"

I got success message like this

Dictionary successfully processed.

Language Pack

bin/magento i18n:pack -d app/i18n/test/te_te/te_TE.csv te_te te_TE

I got success message like this

Successfully saved te_TE language package.

but my new language not listed in new store view in admin so I am get confused whether the command is correct or not.

pub/static/* folder contains only en_US

Thanks.


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.