postcode-nl / PostcodeNl_Api_Magento2

A Magento 2 plugin that implements the Postcode.nl international address API
https://developer.postcode.eu/documentation/
BSD 2-Clause "Simplified" License
10 stars 13 forks source link

Translation of validation message when an address is invalid #87

Closed hd-jeroen closed 9 months ago

hd-jeroen commented 1 year ago

When using the plugin on a Dutch webshop which the language set to Dutch (nl_NL) the "Address not found" string is not being translated to the Dutch language, even though the translate string is available in the nl_NL.csv file.

image

JerrySmidt commented 1 year ago

Reasons for translations not being applied:

You could also check logs for any errors or warnings related to translations.

hd-jeroen commented 1 year ago

I have not made any custom translation for this and there is no other module that handles the translation. The translation for this string also isn't available in the js-translation.json file.

JerrySmidt commented 1 year ago

The translation should be there if you run php bin/magento setup:static-content:deploy nl_NL or if Magento is in developer mode. Not sure why the string isn't in your js-translation.json file. I'm not able to reproduce the issue here.