- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: New language do not apply!
A language package is an extension so should create and install it as an extension.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: New language do not apply!
When you install an extension you should run the bin/magento setup:upgrade command
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content