Hello,
I added my language directly in "vendor/magento" in the same folder of "en_US.csv" in "i18n" and also created "language-xx_xx" same as this guide but my language do not apply to M2 and still US language show instead of my language...
Locale changed to my local and every thing seems be OK !
Is there any other way to apply new language?!
Solved! Go to Solution.
A language package is an extension so should create and install it as an extension.
Create registration.php file for your language package
<?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::LANGUAGE, 'yourvendor_langpaklocale', __DIR__ );
Take a look to our language pack
I created "registration.php" and also "language.xml" .... same as en_us and etc and then put my Directory "language-xx_yy" in to the "vendor/magento" but do not show translated phrase for me...
I did test it for backend now
When you install an extension you should run the bin/magento setup:upgrade command
As I found my language applied to frontend but didn't apply to backend !
in pub folder and in frontend my language created same as "xx_XX" but for backend this is still "en_US"