Skip to content

dictionary returns undefined #13

@nilsawesome

Description

@nilsawesome

Hi everyone,

I know that it's maybe not an issue of the provided localization service, but I couldn't get help elsewhere. [http://codingsmackdown.tv/blog/2012/12/14/localizing-your-angularjs-app/#comments - This site doesn't accept new comments somehow :/ and I didn't manage to get a contact email-address].

I'm just quoting what i tried to post in the comments twice in several days:


"I'm new to Angular and web-development in general.

I'm trying to include this localization feature into my app, but I'm stuck for quite some time now. I think the error in my case occurs in the following code:

var entry = $filter('filter')(localize.dictionary, function(element) {
return element.key === value;
}
)[0];

The dictionary is filled with the whole JSON-file, but the entry variable is set to "undefined" afterwards.

Does someone know whats going on there?

Kind regards from Germany

Nils"


It would be nice, if someone could help. If you think that this is the wrong place for this, don't hesitate to close/delete it ;).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions