How to get a localized value?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
rajupaladiya wrote:
Try this
var productAttributeValue = _productAttributeService.GetProductAttributeValueById(attributeValueId);

var name = productAttributeValue.GetLocalized(x => x.Name, _workContext.WorkingLanguage.Id, false, false);


That works. Thanku rajupaladiya
4 years ago
Great (Y) Glad to hear !!
4 years ago
rajupaladiya wrote:
Try this
var productAttributeValue = _productAttributeService.GetProductAttributeValueById(attributeValueId);

var name = productAttributeValue.GetLocalized(x => x.Name, _workContext.WorkingLanguage.Id, false, false);


I have three languages. This feature works well for English and Spanish. For the Russian language is an empty value. How can I check why?

Thanks
4 years ago
gnikitsin wrote:
I have three languages. This feature works well for English and Spanish. For the Russian language is an empty value. How can I check why?

Can you check resource string value for Russian language.

For check this, Go to Admin >> Configuration >> Languages >> Edit Russian language >> Search by your resource string or add new value. if you adding it will update exist one.
4 years ago
rajupaladiya wrote:
I have three languages. This feature works well for English and Spanish. For the Russian language is an empty value. How can I check why?
Can you check resource string value for Russian language.

For check this, Go to Admin >> Configuration >> Languages >> Edit Russian language >> Search by your resource string or add new value. if you adding it will update exist one.


Thanks . The resource was indeed set
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.