I installed language pack in app/i18n/magento2translations/language_nl_nl/
with file nl_NL.csv It's works perfect.
Also, I added in custom theme file app/design/frontend/COMPANY/PROJECT/i18n/nl_NL.csv
with my custom translates, but it not working (mode: developer, static content and caches were cleaned).
When I move custom translates to language pack's nl_NL.csv custom translates works fine.
I think the language pack has more priority as a custom theme i18n translates.
How override translates in language pack in the correct way?
Magento – Magento2: how override translates in language pack
language-packagemagento2
Best Answer
[UPDATE] Since Magento 2.2 translation load order is the following:
That basically means that translation package will overrule theme translation. So quick and easy solution would be overcome it using Inline translation, which was also possible in M1. But we have M2 now which has even more flexibility on board and there is a way to extend existing translation packages with custom ones. All you need to do is create another translation package. So, create a module
create a registration.php for it with the following content:
That's how we define that module is a translation package. Last step, create a meta-file language.xml with the following content:
This way you specify the parent translation package you want to extend. And also specify the order, in case you already have translation package inheritance in the project. Here is a link on example from magento itself.
One more thing. Make sure that your
<vendor> . '_' . <code>
(from language.xml) will match module name fromregistration.php
.project_nl_nl
in my example.