nopSolutions / nopCommerce

ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
https://www.nopcommerce.com
Other
9.21k stars 5.29k forks source link

Use valid language in message templates (order tokens) #7251

Closed AndreiMaz closed 3 months ago

AndreiMaz commented 3 months ago

nopCommerce version: 4.70

"AddOrderTokensAsync" method of the \Nop.Services\Messages\MessageTokenProvider.cs does not properly use "languageId" parameter. In some cases tokens are localized with the default (current working) language. For example, "Order.BillingStateProvince","Order.BillingCountry","Order.ShippingStateProvince","Order.ShippingCountry", "Order.PaymentMethod"

Source: https://www.nopcommerce.com/en/boards/topic/99440/language-in-message-templates

skoshelev commented 3 months ago

Closed #7251