Tag: Dictionary

How to Get Sitecore Dictionary in JavaScript

It’s very easy to get translations in back-end code — either Razor views or .cs files — by simply calling to Sitecore.Globalization.Translate.Text(). But what about JavaScript widgets? There we have several options: Item Web API results in overhead and is hard to use without additional implementation. StringDictionary embeds values right in HTML and needs to be configured […]


Editable Dictionary Items

Context The gist of the questions: We are heavily dependent on Translate.Text(). We like Page Editor. Can’t migrate to datasource items. Would very much like our dictionary translations editable in Page Editor. Can it be done? The gist of the answer: Yes Approach Translation.Text() runs through a getTranslation pipeline (surprise!). We could create a pipeline […]