Created
April 22, 2015 08:31
-
-
Save abjerner/3a229b2d7a9eeef36b15 to your computer and use it in GitHub Desktop.
Adding custom translations to Umbraco backoffice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).load(function () { | |
var ev = angular.element(document).injector().get('eventsService'); | |
ev.on('localizationService.updated', function () { | |
var ls = angular.element(document).injector().get('localizationService'); | |
ls.dictionary['bacon_omgbacon'] = 'OMG BACON'; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So if I'd mashed this in, I'd be able to use the
<localize key="bacon_omgbacon">OMFGB</localize>
directive in my views?