Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8917381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:28:12+00:00 2026-06-15T05:28:12+00:00

I am working with a language file that stores the traductions for the jquery

  • 0

I am working with a language file that stores the traductions for the jquery datepicker
URL: http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/i18n/jquery-ui-i18n.min.js?ver=3.4.2

The jQuery.datepicker.regional object is returned and I would like to access the it (italian) property of this object.
My problem is that when I do something like

console.log(jQuery.datepicker.regional['it'])

or

console.log(jQuery.datepicker.regional.it)

the console says the object is undefined.

But when I do something like:

    console.log(jQuery.datepicker.regional);

The console returns something like this:

[Object]
    : Object
    af: Object
    ar: Object
    ...
    it: Object

What am I doing wrong? The “it” object is there isn’t it?
How can I access the “it” object of the jQuery.datepicker.regional object?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:28:13+00:00Added an answer on June 15, 2026 at 5:28 am

    jQuery.datepicker.regional is updated with each translation object when the DOM is ready:

    JQuery(function($){ 
        $.datepicker.regional['it'] = {
            // …
        }
    })
    

    Try accessing it similarly:

    $(function() {
        console.log(jQuery.datepicker.regional.it)
    })
    

    Aside regarding console.log

    console.logging just the regional object shows all the localization objects because console.log (and sometimes console.dir) prints a reference to the object, whose properties may have changed by the time you actually look at them in the console. There are definitely some browser idiosyncrasies.

    For example, in Chrome 25.0.1337.0:

    var foo = {};
    console.dir(foo) // Object: { baz: "bip" }
    
    console.log(foo) // Object: {}
    console.log(foo.baz); // undefined
    
    foo.baz = "bip";
    
    
    var bar = {};
    console.dir(bar) // Object: { baz : { foo: 10 }}
    
    bar.prototype = new Array;
    console.log(bar) // Object: { baz : { foo: 10 }}
    console.log(bar.baz); // undefined
    
    bar.baz = { foo: 10 };
    

    While in Firefox 17.0 + Firebug 1.9.2:

    var foo = {};
    console.dir(foo) // Object: { }
    
    console.log(foo) // Object: { baz: "bip" }
    console.log(foo.baz); // undefined
    
    foo.baz = "bip";
    
    
    var bar = {};
    console.dir(bar) // Object: {}
    
    bar.prototype = new Array;
    console.log(bar) // Object: { baz : { foo: 10 }}
    console.log(bar.baz); // undefined
    
    bar.baz = { foo: 10 };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am putting together a multilingual site according to the tutorial: http://nuts-and-bolts-of-cakephp.com/2008/11/28/cakephp-url-based-language-switching-for-i18n-and-l10n-internationalization-and-localization/ However, the
I've been working with R language, I've created a histogram from a data file
I'm working on highlighting a small scripting language (that is not a derivative of
Working with a Visual Basic.NET console application that features a VERY BASIC natural language
I am working on a multi language file. My urls look something like this:
My pages when viewed in browser are working fine. I have a language file
I have a table that stores a tree like structure of file names. There
C++ is not my preferred language. I have a file that contains this: e
I'm working on a multi-language website. I have a problem with the color of
I have started working on a project which requires Natural Language Processing. We have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.