Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am working in Umbraco v8. I'm using the localization service.
I can get a dictionary item by id, and I can get the value of the item by the language id.
var dictionaryItem = _localizationService.GetDictionaryItemById(apiInstruction.NodeId);
var defaultTranslationValue = dictionaryItem.Translations.FirstOrDefault(x => x.Id == defaultLanguage.Value);
When there is no translation for the default language, I want to fall back to using the name of the dictionary item.
So my question to you is, how do I access the name or alias of the dictionary item?
that should be the dictionaryItem.ItemKey value
Thanks Kevin, much appreciated.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted