Search code examples
angularjsangular-translate

Angular translate: change the cookie name


I'm using angular translate plugin: https://github.com/angular-translate

I'd like to use cookiestorage. When store the preference using

$translateProvider.useCookieStorage();

I see that a new cookie is created and is named: ng_translate_lang_key.

Can I change the cookie name? How can I do this?


Solution

  • there's a method $translateProvider.storagePrefix() which you can use for that.