cancel
Showing results for 
Search instead for 
Did you mean: 

New language do not apply!

SOLVED

New language do not apply!

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?!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: New language do not apply!

How to change the backend locale: https://mage2.pro/t/184

View solution in original post

6 REPLIES 6

Re: New language do not apply!

A language package is an extension so should create and install it as an extension.

Re: New language do not apply!

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

https://bitbucket.org/etws/m2_russianlanguagepack


ET Web Solutions
extensions, custom work, support

Re: New language do not apply!

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

Re: New language do not apply!

When you install an extension you should run the bin/magento setup:upgrade command

Re: New language do not apply!

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"

Re: New language do not apply!

How to change the backend locale: https://mage2.pro/t/184