question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

So, I’ve added two files:

<script src="/js/angular-translate.js"></script>
<script src="/js/angular-translate-storage-cookie.js"></script>

Then tryied to init:

config.$inject = ['$translateProvider'];
function config($translateProvider) {
    $translateProvider
        .useUrlLoader('/app/crm/locales.json')
        .useCookieStorage()
        .preferredLanguage('en');
}

Getting error: Unknown provider: $cookieStoreProvider <- $cookieStore <- $translateCookieStorage <- $translate

What I do wrong?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Fattouh92commented, Jan 17, 2016

@zloy531 I had the same error, i included: /angular-translate-storage-cookie/node_modules/angular-cookies/angular-cookies.min.js and /angular-translate-storage-cookie/angular-translate-storage-cookie.min.js and it worked. downloaded from npm

0reactions
knallicommented, Jan 11, 2015
 Unknown provider: $translateLocalStorageProvider

is a general Angular JS error message meaning there is a missing component (named $translateLocaleStorage).

I’d suggest to read the corresponding chapter.

@zloy531 gives you actually the solution already.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Cookie Problems and How to Prevent Them
The most common reason cookies are dry is too much flour. Over-measuring flour is a very common reason for most any baking recipe...
Read more >
Common cookie problems and how to avoid them
Problem #1: Flat, rock hard cookies · Problem #2: Dry and stiff cookies · Problem #3: Dark and crispy cookies · Problem #4:...
Read more >
Cookies Problems and Solutions: Why are My Cookies Flat?
COOKIES ; Cookies crumble and are dry and hard, Over mixing the dough, over baking, dry fruit/coconut, too much water or a lack...
Read more >
How to Fix 10 Common Cookie Problems | Cook's Illustrated
Troubleshoot everything from unevenly baked batches to the dreaded melted-together megacookie. Problem #1: The last cookies always seem short on chips. Solution ...
Read more >
Problems with Cookies - How Internet Cookies Work
Cookies get erased - If you have a problem with your browser and call tech support, probably the first thing that tech support...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found