Skip to content

useLocalStorage is set to true I don't get any translation #3

@panosru

Description

@panosru

Hello, if I have the following:

  $.i18n.init({
      dynamicLoad: true
    , fallbackLng : 'en-US'
    , resGetPath : 'locales/resources.json?lng=__lng__&ns=__ns__'
    , useLocalStorage: true // in production you could use this
  }, function(t) {
     console.log(t('creator.firstname'));
  });

I don't get any translation... but if I set useLocalStorage : false then it works fine, I'm a bit confused with that...

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions