chieffancypants / angular-hotkeys

Configuration-centric keyboard shortcuts for your Angular apps.
http://chieffancypants.github.io/angular-hotkeys/
MIT License
1.68k stars 254 forks source link

Using $translate and $templateCache #246

Closed Zomono closed 2 years ago

Zomono commented 7 years ago

The settings for internationalized strings and cheat-sheet-template have to be made within the config-phase of angular. This is a problem because $translate and $templateCache are not ready to use at this time. Thus it would be nice

Thanks in advanced

felipeplets commented 6 years ago

@Zomono this is exactly what I'm looking for. Be able to use $translate in the hotkeys cheatsheet. Are there any current workarounds to make it work?

Zomono commented 6 years ago

I don't know the current state of this project. Maybe something has been implemented in the meanwhile. Has a dirty workaround you may load and access the translation data the same way you do to initialize $translate.